Commit 9a831aba authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Show mini player when a video is in background

parent 849f6b71
......@@ -624,7 +624,7 @@ public class PlaybackService extends MediaBrowserServiceCompat{
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public void showNotification() {
if (!AndroidDevices.isAndroidTv && VLCApplication.showTvUi()) return;
if (isPlayingPopup() || !hasRenderer() && playlistManager.getPlayer().isVideoPlaying()) {
if (isPlayingPopup() || !hasRenderer() && isVideoPlaying()) {
hideNotification(true);
return;
}
......@@ -1440,6 +1440,7 @@ public class PlaybackService extends MediaBrowserServiceCompat{
if (BuildConfig.DEBUG) Log.v(TAG, "Showing index " + index + " with playing URI " + media.getUri());
playlistManager.setCurrentIndex(index);
notifyTrackChanged();
PlaylistManager.Companion.getShowAudioPlayer().setValue(!isVideoPlaying());
showNotification();
}
......
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