mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
keep notification when stop(false) is called
ISSUE: #6041 PiperOrigin-RevId: 253958225
This commit is contained in:
parent
0f514a093b
commit
5d544974e9
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue