summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2017-05-12 14:59:09 -0700
committerTony <twickham@google.com>2017-05-16 14:08:42 -0700
commit2ab8482809109c7c202e12bcef083cc3783e852e (patch)
tree2103d4d8fac65fa8cd992a2ffa50a4facbfba746 /res/xml
parent441c628a751be4960b6955dfdf4e9557f0fc5220 (diff)
downloadandroid_packages_apps_Trebuchet-2ab8482809109c7c202e12bcef083cc3783e852e.tar.gz
android_packages_apps_Trebuchet-2ab8482809109c7c202e12bcef083cc3783e852e.tar.bz2
android_packages_apps_Trebuchet-2ab8482809109c7c202e12bcef083cc3783e852e.zip
Add setting to turn off icon badging
Redirects to system Notifications setting page. Bug: 36815147 Change-Id: I5ee542f94ed51a73a57df3a726384944ff3ee71d
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/launcher_preferences.xml26
1 files changed, 19 insertions, 7 deletions
diff --git a/res/xml/launcher_preferences.xml b/res/xml/launcher_preferences.xml
index 301bef104..876388363 100644
--- a/res/xml/launcher_preferences.xml
+++ b/res/xml/launcher_preferences.xml
@@ -17,13 +17,6 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<SwitchPreference
- android:key="pref_allowRotation"
- android:title="@string/allow_rotation_title"
- android:defaultValue="@bool/allow_rotation"
- 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"
@@ -40,4 +33,23 @@
android:defaultValue=""
android:persistent="false" />
+ <Preference
+ android:key="pref_icon_badging"
+ android:title="@string/icon_badging_title"
+ android:persistent="false">
+ <intent android:action="android.settings.NOTIFICATION_SETTINGS">
+ <!-- This extra highlights the "Allow icon badges" field in Notification settings -->
+ <extra
+ android:name=":settings:fragment_args_key"
+ android:value="notification_badging" />
+ </intent>
+ </Preference>/>
+
+ <SwitchPreference
+ android:key="pref_allowRotation"
+ android:title="@string/allow_rotation_title"
+ android:defaultValue="@bool/allow_rotation"
+ android:persistent="true"
+ />
+
</PreferenceScreen>