summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-01-22 11:09:43 -0800
committerGerrit Code Review <gerrit@cyngn.com>2015-01-27 23:10:48 +0000
commit0319df43de1b8bc4bd7097aea442ed3e45cc6bf9 (patch)
treee69c8ded09e9e3a856f7779c87971294e46f61bf /AndroidManifest.xml
parent3709dd1879d181db5ebad0c9f476d4c19268b227 (diff)
downloadpackages_apps_ThemeChooser-0319df43de1b8bc4bd7097aea442ed3e45cc6bf9.tar.gz
packages_apps_ThemeChooser-0319df43de1b8bc4bd7097aea442ed3e45cc6bf9.tar.bz2
packages_apps_ThemeChooser-0319df43de1b8bc4bd7097aea442ed3e45cc6bf9.zip
Disable launcher icon if Theme Store is installed
This allows us to have one apk that can have a launcher icon if the Theme Store is not installed and if it is installed we can disable the theme chooser launcher icon. REF: CHOOSER-28 Change-Id: Id4c81ea7f68aa1491370d70fa29f3b5097e94488
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml25
1 files changed, 19 insertions, 6 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 4b6d543..73e497a 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -27,6 +27,9 @@
<!-- Used to cleanly uninstall themes without relying on the PackageInstaller apk -->
<uses-permission android:name="android.permission.DELETE_PACKAGES" />
+ <!-- Used for disabling theme chooser icon if store exists -->
+ <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="19" />
@@ -44,7 +47,6 @@
android:screenOrientation="sensorPortrait">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
- <category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
@@ -53,16 +55,21 @@
<category android:name="cyanogenmod.intent.category.APP_THEMES" />
</intent-filter>
<intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.DEFAULT" />
- <category android:name="cyngn.intent.category.APP_THEMES" />
- </intent-filter>
- <intent-filter>
<action android:name="android.intent.action.APPLY_THEME"/>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
+ <activity-alias android:name="com.cyngn.theme.chooser.ChooserLauncher"
+ android:targetActivity="com.cyngn.theme.chooser.ChooserActivity"
+ android:label="@string/app_name"
+ android:icon="@drawable/ic_app_themes">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN"/>
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity-alias>
+
<receiver android:name="com.cyngn.theme.chooser.AppReceiver" >
<intent-filter>
<action android:name="android.intent.action.PACKAGE_ADDED" />
@@ -82,6 +89,12 @@
</intent-filter>
</receiver>
+ <receiver android:name=".BootReceiver">
+ <intent-filter>
+ <action android:name="android.intent.action.BOOT_COMPLETED" />
+ </intent-filter>
+ </receiver>
+
<service android:name="com.cyngn.theme.chooser.NotificationHijackingService"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>