summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-03-10 20:20:48 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-10 20:20:48 +0000
commitec37c50b63c7d6a3996d5473d79eb008b5fbd59d (patch)
treed9a985e52b08fb688ba03987eb92d372fd028154 /res
parentc5332f4c04e44091f1a7125e350e335bd423bfc9 (diff)
parent4179e9b88f21d49e24ee005c00b0dad0de0ec343 (diff)
downloadandroid_packages_apps_Trebuchet-ec37c50b63c7d6a3996d5473d79eb008b5fbd59d.tar.gz
android_packages_apps_Trebuchet-ec37c50b63c7d6a3996d5473d79eb008b5fbd59d.tar.bz2
android_packages_apps_Trebuchet-ec37c50b63c7d6a3996d5473d79eb008b5fbd59d.zip
Adding broadcast receiver to handle SESSION_COMMIT broadcast
am: 4179e9b88f Change-Id: Ida895e5723b5d6d02b72ce7b04666b529eabb1cc
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>