summaryrefslogtreecommitdiffstats
path: root/AndroidManifest-common.xml
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-03-08 14:25:09 -0800
committerSunny Goyal <sunnygoyal@google.com>2017-03-09 10:56:09 -0800
commit4179e9b88f21d49e24ee005c00b0dad0de0ec343 (patch)
tree7d2529963201820462c3c7fe809a26679844a756 /AndroidManifest-common.xml
parentb07a355fe24d70b4affbe2afaf74a8568b2e0e08 (diff)
downloadandroid_packages_apps_Trebuchet-4179e9b88f21d49e24ee005c00b0dad0de0ec343.tar.gz
android_packages_apps_Trebuchet-4179e9b88f21d49e24ee005c00b0dad0de0ec343.tar.bz2
android_packages_apps_Trebuchet-4179e9b88f21d49e24ee005c00b0dad0de0ec343.zip
Adding broadcast receiver to handle SESSION_COMMIT broadcast
> Disabling Install shortcut broadcast for O and above > Adding a preference to control automatic icon addition on homescreen > Adding icons on homescreen for new installs based on the above preference Bug: 32920609 Bug: 27967412 Change-Id: I92e5cb7c841fb445dc8bc058d975f212ee54f8d1
Diffstat (limited to 'AndroidManifest-common.xml')
-rw-r--r--AndroidManifest-common.xml11
1 files changed, 10 insertions, 1 deletions
diff --git a/AndroidManifest-common.xml b/AndroidManifest-common.xml
index da1679f7f..50fb2d768 100644
--- a/AndroidManifest-common.xml
+++ b/AndroidManifest-common.xml
@@ -58,12 +58,21 @@
<!-- Intent received used to install shortcuts from other applications -->
<receiver
android:name="com.android.launcher3.InstallShortcutReceiver"
- android:permission="com.android.launcher.permission.INSTALL_SHORTCUT">
+ android:permission="com.android.launcher.permission.INSTALL_SHORTCUT"
+ android:enabled="@bool/enable_install_shortcut_api" >
<intent-filter>
<action android:name="com.android.launcher.action.INSTALL_SHORTCUT" />
</intent-filter>
</receiver>
+ <!-- Intent received when a session is committed -->
+ <receiver
+ android:name="com.android.launcher3.SessionCommitReceiver" >
+ <intent-filter>
+ <action android:name="android.content.pm.action.SESSION_COMMITTED" />
+ </intent-filter>
+ </receiver>
+
<!-- Intent received used to initialize a restored widget -->
<receiver android:name="com.android.launcher3.AppWidgetsRestoredReceiver" >
<intent-filter>