diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-04-01 09:55:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-01 09:55:30 +0200 |
commit | a846e417b030e1491c472d50651d58a8f2c15c0e (patch) | |
tree | d2bb8df773e595977cd24008bde91cd998c1890a /storage/preferences | |
parent | edb440a5a9a05e24c344a71b272b9238217e9c55 (diff) | |
download | AntennaPod-a846e417b030e1491c472d50651d58a8f2c15c0e.zip |
Fix playback state not being updated (#7050)
Diffstat (limited to 'storage/preferences')
-rw-r--r-- | storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/PlaybackPreferences.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/PlaybackPreferences.java b/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/PlaybackPreferences.java index d6d260446..9ec20bd2c 100644 --- a/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/PlaybackPreferences.java +++ b/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/PlaybackPreferences.java @@ -109,6 +109,10 @@ public abstract class PlaybackPreferences { return prefs.getInt(PREF_CURRENT_PLAYER_STATUS, PLAYER_STATUS_OTHER); } + public static void setCurrentPlayerStatus(int playerStatus) { + prefs.edit().putInt(PREF_CURRENT_PLAYER_STATUS, playerStatus).apply(); + } + public static float getCurrentlyPlayingTemporaryPlaybackSpeed() { return prefs.getFloat(PREF_CURRENTLY_PLAYING_TEMPORARY_PLAYBACK_SPEED, FeedPreferences.SPEED_USE_GLOBAL); } |