diff options
author | ByteHamster <info@bytehamster.com> | 2018-06-08 00:28:32 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2018-06-08 00:28:32 +0200 |
commit | 9fb695822a49037a60bb4c0f0df005e262fa3b12 (patch) | |
tree | ed02f6c69bd83d5c2a50d107f471f97b433c2362 /core | |
parent | c2ace741563f33d507ae7fd425ad659298cbd655 (diff) | |
download | AntennaPod-9fb695822a49037a60bb4c0f0df005e262fa3b12.zip |
Removed delibertate fallthrough
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java index 68583c840..fb6291234 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java @@ -677,6 +677,11 @@ public class PlaybackService extends MediaBrowserServiceCompat { writePlayerStatusPlaybackPreferences(); break; + case STOPPED: + writePlaybackPreferencesNoMediaPlaying(); + stopSelf(); + break; + case PLAYING: writePlayerStatusPlaybackPreferences(); setupNotification(newInfo); @@ -689,7 +694,7 @@ public class PlaybackService extends MediaBrowserServiceCompat { } break; - case ERROR: case STOPPED: + case ERROR: writePlaybackPreferencesNoMediaPlaying(); stopSelf(); break; |