From 8c9b61e599df6124e39066b409f62cfed083d849 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Fri, 31 Mar 2023 22:18:37 +0200 Subject: [PATCH] Remove 'set lockscreen background' setting (#6385) Users disable the setting and then wonder why other apps (like Android Auto) do not display the cover image, even though it says so in the setting summary. --- .../res/xml/preferences_user_interface.xml | 6 ---- .../service/playback/PlaybackService.java | 35 ++++++++++--------- .../storage/preferences/UserPreferences.java | 10 ------ ui/i18n/src/main/res/values/strings.xml | 2 -- 4 files changed, 18 insertions(+), 35 deletions(-) diff --git a/app/src/main/res/xml/preferences_user_interface.xml b/app/src/main/res/xml/preferences_user_interface.xml index ed3f5777a..02d15f6d4 100644 --- a/app/src/main/res/xml/preferences_user_interface.xml +++ b/app/src/main/res/xml/preferences_user_interface.xml @@ -73,12 +73,6 @@ android:key="prefCompactNotificationButtons" android:summary="@string/pref_compact_notification_buttons_sum" android:title="@string/pref_compact_notification_buttons_title"/> - { - if (UserPreferences.PREF_LOCKSCREEN_BACKGROUND.equals(key)) { - updateNotificationAndMediaSession(getPlayable()); - } - }; } diff --git a/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java b/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java index fda95ccd7..1099d356e 100644 --- a/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java +++ b/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java @@ -55,7 +55,6 @@ public class UserPreferences { public static final String PREF_SHOW_TIME_LEFT = "showTimeLeft"; private static final String PREF_PERSISTENT_NOTIFICATION = "prefPersistNotify"; public static final String PREF_COMPACT_NOTIFICATION_BUTTONS = "prefCompactNotificationButtons"; - public static final String PREF_LOCKSCREEN_BACKGROUND = "prefLockscreenBackground"; private static final String PREF_SHOW_DOWNLOAD_REPORT = "prefShowDownloadReport"; private static final String PREF_SHOW_AUTO_DOWNLOAD_REPORT = "prefShowAutoDownloadReport"; public static final String PREF_DEFAULT_PAGE = "prefDefaultPage"; @@ -291,15 +290,6 @@ public class UserPreferences { return prefs.getBoolean(PREF_PERSISTENT_NOTIFICATION, true); } - /** - * Returns true if the lockscreen background should be set to the current episode's image - * - * @return {@code true} if the lockscreen background should be set, {@code false} otherwise - */ - public static boolean setLockscreenBackground() { - return prefs.getBoolean(PREF_LOCKSCREEN_BACKGROUND, true); - } - /** * Returns true if download reports are shown * diff --git a/ui/i18n/src/main/res/values/strings.xml b/ui/i18n/src/main/res/values/strings.xml index 2a2f7b6d1..fba8b895e 100644 --- a/ui/i18n/src/main/res/values/strings.xml +++ b/ui/i18n/src/main/res/values/strings.xml @@ -485,8 +485,6 @@ Change the playback buttons when the notification is collapsed. The play/pause button is always included. Select a maximum of %1$d items You can only select a maximum of %1$d items. - Set Lockscreen Background - Set the lockscreen background to the current episode\'s image. As a side effect, this will also show the image in third party apps. Enqueue Location Add episodes to: %1$s Back