diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-07-07 03:12:21 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-07-10 11:10:35 -0700 |
commit | 848cad56ced14a2149d937bd6482387df8538c98 (patch) | |
tree | 2e6cbe2b29a982ff123c2c48a924b98d93e83820 /res/xml/launcher_preferences.xml | |
parent | 6c5d10261eceaf1b57bce82e4e31d272bad2c349 (diff) | |
download | packages_apps_Trebuchet-848cad56ced14a2149d937bd6482387df8538c98.tar.gz packages_apps_Trebuchet-848cad56ced14a2149d937bd6482387df8538c98.tar.bz2 packages_apps_Trebuchet-848cad56ced14a2149d937bd6482387df8538c98.zip |
Adding a warning button when notification access is not available
Bug: 63418030
Change-Id: I4c2c497d989902ac002314a3b8fb97083757958b
Diffstat (limited to 'res/xml/launcher_preferences.xml')
-rw-r--r-- | res/xml/launcher_preferences.xml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/res/xml/launcher_preferences.xml b/res/xml/launcher_preferences.xml index c76f118e8..28a35b829 100644 --- a/res/xml/launcher_preferences.xml +++ b/res/xml/launcher_preferences.xml @@ -16,17 +16,18 @@ <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> - <Preference + <com.android.launcher3.views.ButtonPreference android:key="pref_icon_badging" android:title="@string/icon_badging_title" - android:persistent="false"> + android:persistent="false" + android:widgetLayout="@layout/notification_pref_warning" > <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> + </com.android.launcher3.views.ButtonPreference> <SwitchPreference android:key="pref_add_icon_to_home" |