From a83674507904cd8c29ca0c3bd9d52d45fa7115a4 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Tue, 1 Nov 2022 11:52:27 +0100 Subject: Close video player when switching to audio --- .../core/util/playback/PlaybackController.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'core') diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java b/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java index da27dad07..5b6530850 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackController.java @@ -216,8 +216,6 @@ public abstract class PlaybackController { } mediaInfoLoaded = false; queryService(); - onReloadNotification(intent.getIntExtra( - PlaybackService.EXTRA_NOTIFICATION_CODE, -1)); break; case PlaybackService.NOTIFICATION_TYPE_PLAYBACK_END: onPlaybackEnd(); @@ -227,13 +225,6 @@ public abstract class PlaybackController { }; - public void onPositionObserverUpdate() {} - - /** - * Called when the currently displayed information should be refreshed. - */ - public void onReloadNotification(int code) {} - public void onPlaybackEnd() {} /** @@ -245,7 +236,6 @@ public abstract class PlaybackController { checkMediaInfoLoaded(); switch (status) { case PAUSED: - onPositionObserverUpdate(); updatePlayButtonShowsPlay(true); if (!PlaybackService.isCasting() && PlaybackService.getCurrentMediaType() == MediaType.VIDEO) { setScreenOn(false); @@ -264,14 +254,8 @@ public abstract class PlaybackController { } break; case PREPARED: - updatePlayButtonShowsPlay(true); - onPositionObserverUpdate(); - break; - case SEEKING: - onPositionObserverUpdate(); - break; case STOPPED: // Fall-through - case INITIALIZED: + case INITIALIZED: // Fall-through updatePlayButtonShowsPlay(true); break; default: -- cgit v1.2.3