From b79dfc49baf1c5c28e1fcf878f470828e301ded3 Mon Sep 17 00:00:00 2001 From: Adrian Ulrich Date: Wed, 6 Sep 2017 21:37:26 +0200 Subject: [PATCH] Reduce notification visibility modes to when_playing and always. The NEVER didn't really work well since 5.x (we were more likely to get killed) and is broken on 8.x, so we just get rid of it. --- res/values/translatable.xml | 2 +- res/values/untranslatable.xml | 3 +- res/xml/preference_notifications.xml | 8 ++--- .../android/vanilla/PlaybackService.java | 32 +++++++++++-------- .../android/vanilla/PrefDefaults.java | 2 +- .../android/vanilla/PrefKeys.java | 2 +- 6 files changed, 26 insertions(+), 23 deletions(-) diff --git a/res/values/translatable.xml b/res/values/translatable.xml index 754cc783..718fa052 100644 --- a/res/values/translatable.xml +++ b/res/values/translatable.xml @@ -197,7 +197,7 @@ THE SOFTWARE. \'Shuffle mode\' will play tracks in completely random order Notifications - Notification mode + Notification visibility Notification action Very verbose notification diff --git a/res/values/untranslatable.xml b/res/values/untranslatable.xml index fa7e4fad..11fa5c77 100644 --- a/res/values/untranslatable.xml +++ b/res/values/untranslatable.xml @@ -125,8 +125,7 @@ THE SOFTWARE. - - @string/never_show + @string/show_when_playing @string/always_show diff --git a/res/xml/preference_notifications.xml b/res/xml/preference_notifications.xml index e27f2b13..ad82fcea 100644 --- a/res/xml/preference_notifications.xml +++ b/res/xml/preference_notifications.xml @@ -24,11 +24,11 @@ THE SOFTWARE. xmlns:android="http://schemas.android.com/apk/res/android" android:persistent="true"> + android:defaultValue="0" />