Commit 1952988f by bachinger Committed by Oliver Woodman

keep notification when stop(false) is called

ISSUE: #6041
PiperOrigin-RevId: 253958225
parent b9859c47
......@@ -966,7 +966,8 @@ public class PlayerNotificationManager {
@Nullable NotificationCompat.Builder builder,
boolean ongoing,
@Nullable Bitmap largeIcon) {
if (player.getPlaybackState() == Player.STATE_IDLE) {
if (player.getPlaybackState() == Player.STATE_IDLE
&& (player.getCurrentTimeline().isEmpty() || playbackPreparer == null)) {
builderActions = null;
return null;
}
......
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 sign in to comment