Commit a3876afe authored by Geoffrey Métais's avatar Geoffrey Métais

Fix playlist progression in popup mode

parent a9ec39df
......@@ -571,6 +571,7 @@ public class PlaybackService extends MediaBrowserServiceCompat{
public void onPlaybackStopped() {
hideNotification();
removePopup();
if (mWakeLock.isHeld()) mWakeLock.release();
changeAudioFocus(false);
mMedialibrary.resumeBackgroundOperations();
......@@ -777,7 +778,6 @@ public class PlaybackService extends MediaBrowserServiceCompat{
@MainThread
public void stop(boolean systemExit) {
removePopup();
playlistManager.stop(systemExit);
}
......
......@@ -78,8 +78,7 @@ public class PopupManager implements PlaybackService.Callback, GestureDetector.O
public void removePopup() {
hideNotification();
if (mRootView == null)
return;
if (mRootView == null) return;
mService.removeCallback(this);
final IVLCVout vlcVout = mService.getVLCVout();
vlcVout.detachViews();
......@@ -213,9 +212,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment