summaryrefslogtreecommitdiffstats
path: root/res
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 /res
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 'res')
-rw-r--r--res/values-v26/bools.xml2
-rw-r--r--res/values/bools.xml2
-rw-r--r--res/values/strings.xml5
-rw-r--r--res/xml/launcher_preferences.xml7
4 files changed, 16 insertions, 0 deletions
diff --git a/res/values-v26/bools.xml b/res/values-v26/bools.xml
index 1093f7844..30537fe12 100644
--- a/res/values-v26/bools.xml
+++ b/res/values-v26/bools.xml
@@ -18,4 +18,6 @@
<resources>
<bool name="notification_badging_enabled">true</bool>
+
+ <bool name="enable_install_shortcut_api">false</bool>
</resources> \ No newline at end of file
diff --git a/res/values/bools.xml b/res/values/bools.xml
index cc4a7ba44..53c67e2f1 100644
--- a/res/values/bools.xml
+++ b/res/values/bools.xml
@@ -18,4 +18,6 @@
<resources>
<bool name="notification_badging_enabled">false</bool>
+
+ <bool name="enable_install_shortcut_api">true</bool>
</resources> \ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 58bfb4995..423a77299 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -179,6 +179,11 @@
<!-- Text explaining that rotation is disabled in Display settings. 'Display' refers to the Display section in system settings [CHAR LIMIT=100] -->
<string name="allow_rotation_blocked_desc">Current Display setting doesn\'t permit rotation</string>
+ <!-- Label for the setting that allows the automatic placement of launcher shortcuts for applications and games installed on the device [CHAR LIMIT=40] -->
+ <string name="auto_add_shortcuts_label">Add icon to Home screen</string>
+ <!-- Text description of the setting that allows the automatic placement of launcher shortcuts for applications and games installed on the device [CHAR LIMIT=NONE] -->
+ <string name="auto_add_shortcuts_description">For new apps</string>
+
<!-- Label on an icon that references an uninstalled package, for which we have no information about when it might be installed. [CHAR_LIMIT=15] -->
<string name="package_state_unknown">Unknown</string>
diff --git a/res/xml/launcher_preferences.xml b/res/xml/launcher_preferences.xml
index 624d9eb2c..a16583d2c 100644
--- a/res/xml/launcher_preferences.xml
+++ b/res/xml/launcher_preferences.xml
@@ -23,4 +23,11 @@
android:persistent="true"
/>
+ <SwitchPreference
+ android:key="pref_add_icon_to_home"
+ android:title="@string/auto_add_shortcuts_label"
+ android:summary="@string/auto_add_shortcuts_description"
+ android:defaultValue="true"
+ android:persistent="true"
+ />
</PreferenceScreen>