Skip to content
Snippets Groups Projects
Commit 50c8e8d0 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Fix playlist progression in popup mode

parent 396a43d2
No related branches found
No related tags found
No related merge requests found
......@@ -582,6 +582,7 @@ class PlaybackService : MediaBrowserServiceCompat() {
fun onPlaybackStopped(systemExit: Boolean) {
if (!systemExit) hideNotification(VLCApplication.isForeground())
removePopup()
if (wakeLock.isHeld) wakeLock.release()
audioFocusHelper.changeAudioFocus(false)
medialibrary.resumeBackgroundOperations()
......@@ -707,7 +708,6 @@ class PlaybackService : MediaBrowserServiceCompat() {
@MainThread
@JvmOverloads
fun stop(systemExit: Boolean = false) {
removePopup()
playlistManager.stop(systemExit)
}
......@@ -1046,7 +1046,7 @@ class PlaybackService : MediaBrowserServiceCompat() {
@MainThread
fun removePopup() {
if (popupManager != null) popupManager!!.removePopup()
popupManager?.removePopup()
popupManager = null
}
......
......@@ -209,9 +209,6 @@ public class PopupManager implements PlaybackService.Callback, GestureDetector.O
@Override
public void onMediaPlayerEvent(MediaPlayer.Event event) {
switch (event.type) {
case MediaPlayer.Event.Stopped:
removePopup();
break;
case MediaPlayer.Event.Playing:
if (!mAlwaysOn)
mRootView.setKeepScreenOn(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment