Fix nullability issue in MediaControllerImplLegacy

PiperOrigin-RevId: 588035411
This commit is contained in:
Googler 2023-12-05 05:22:10 -08:00 committed by Copybara-Service
parent b0e2fd78af
commit e0f1783a54

View File

@ -2407,7 +2407,7 @@ import org.checkerframework.checker.initialization.qual.UnderInitialization;
@Nullable CharSequence queueTitle,
@PlaybackStateCompat.RepeatMode int repeatMode,
@PlaybackStateCompat.ShuffleMode int shuffleMode,
Bundle sessionExtras) {
@Nullable Bundle sessionExtras) {
this.playbackInfoCompat = playbackInfoCompat;
this.playbackStateCompat = playbackStateCompat;
this.mediaMetadataCompat = mediaMetadataCompat;
@ -2415,7 +2415,7 @@ import org.checkerframework.checker.initialization.qual.UnderInitialization;
this.queueTitle = queueTitle;
this.repeatMode = repeatMode;
this.shuffleMode = shuffleMode;
this.sessionExtras = sessionExtras;
this.sessionExtras = sessionExtras != null ? sessionExtras : Bundle.EMPTY;
}
public LegacyPlayerInfo(LegacyPlayerInfo other) {