From 14289bd356f4e1f3d4633d1a97a4721e16feabb8 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Wed, 20 Feb 2019 10:33:15 -0500 Subject: [PATCH] Add pref for notification swipe direction And move that and other settings under an 'advanced' category Test: robotests Fixes: 124099692 Change-Id: I89df276a8bc1cd56ce8530239ca02b2c4b43fa65 --- res/values/arrays.xml | 11 ++ res/values/strings.xml | 9 ++ res/xml/configure_notification_settings.xml | 95 +++++++------- .../SwipeDirectionPreferenceController.java | 75 +++++++++++ ...wipeDirectionPreferenceControllerTest.java | 116 ++++++++++++++++++ 5 files changed, 265 insertions(+), 41 deletions(-) create mode 100644 src/com/android/settings/notification/SwipeDirectionPreferenceController.java create mode 100644 tests/robotests/src/com/android/settings/notification/SwipeDirectionPreferenceControllerTest.java diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 31b89f10401..03e40aa13fc 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -1098,6 +1098,17 @@ zen_mode_from_none + + + @string/swipe_direction_rtl + @string/swipe_direction_ltr + + + + 1 + 0 + + Detect automatically Treat as metered diff --git a/res/values/strings.xml b/res/values/strings.xml index b7874731e9c..c76057a7b06 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -7617,6 +7617,15 @@ Allow notification bubbles + + Swipe actions + + + Swipe right to dismiss, left to show menu + + + Swipe left to dismiss, right to show menu + Blink light diff --git a/res/xml/configure_notification_settings.xml b/res/xml/configure_notification_settings.xml index 8df1197e997..803d12bab82 100644 --- a/res/xml/configure_notification_settings.xml +++ b/res/xml/configure_notification_settings.xml @@ -19,58 +19,71 @@ android:title="@string/configure_notification_settings" android:key="configure_notification_settings"> - - - - - + - - + - - + + - - + + - + + - + + + + + + + + + +