diff options
author | mueller-ma <mueller-ma@users.noreply.github.com> | 2023-04-03 21:50:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 21:50:13 +0200 |
commit | 3e101cca2a8c2373a41f17c0baf5ffd58beb7a7a (patch) | |
tree | 4f30abcfd90e55962582312b4fb74635b399f28c /core/src | |
parent | 038847177e33d82669ff61dd730589fb58adbed4 (diff) | |
download | AntennaPod-3e101cca2a8c2373a41f17c0baf5ffd58beb7a7a.zip |
Make widget configurable by long-pressing (#6410)
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/widget/WidgetUpdater.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/widget/WidgetUpdater.java b/core/src/main/java/de/danoeh/antennapod/core/widget/WidgetUpdater.java index dda8a37fb..b27325cf8 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/widget/WidgetUpdater.java +++ b/core/src/main/java/de/danoeh/antennapod/core/widget/WidgetUpdater.java @@ -176,6 +176,9 @@ public abstract class WidgetUpdater { views.setInt(R.id.butRew, "setVisibility", showRewind ? View.VISIBLE : View.GONE); views.setInt(R.id.butFastForward, "setVisibility", showFastForward ? View.VISIBLE : View.GONE); views.setInt(R.id.butSkip, "setVisibility", showSkip ? View.VISIBLE : View.GONE); + } else { + views.setInt(R.id.extendedButtonsContainer, "setVisibility", View.GONE); + views.setInt(R.id.butPlay, "setVisibility", View.VISIBLE); } int backgroundColor = prefs.getInt(PlayerWidget.KEY_WIDGET_COLOR + id, PlayerWidget.DEFAULT_COLOR); |