Fix nullability issue in MediaControllerImplLegacy
PiperOrigin-RevId: 588035411
This commit is contained in:
parent
b0e2fd78af
commit
e0f1783a54
@ -2407,7 +2407,7 @@ import org.checkerframework.checker.initialization.qual.UnderInitialization;
|
|||||||
@Nullable CharSequence queueTitle,
|
@Nullable CharSequence queueTitle,
|
||||||
@PlaybackStateCompat.RepeatMode int repeatMode,
|
@PlaybackStateCompat.RepeatMode int repeatMode,
|
||||||
@PlaybackStateCompat.ShuffleMode int shuffleMode,
|
@PlaybackStateCompat.ShuffleMode int shuffleMode,
|
||||||
Bundle sessionExtras) {
|
@Nullable Bundle sessionExtras) {
|
||||||
this.playbackInfoCompat = playbackInfoCompat;
|
this.playbackInfoCompat = playbackInfoCompat;
|
||||||
this.playbackStateCompat = playbackStateCompat;
|
this.playbackStateCompat = playbackStateCompat;
|
||||||
this.mediaMetadataCompat = mediaMetadataCompat;
|
this.mediaMetadataCompat = mediaMetadataCompat;
|
||||||
@ -2415,7 +2415,7 @@ import org.checkerframework.checker.initialization.qual.UnderInitialization;
|
|||||||
this.queueTitle = queueTitle;
|
this.queueTitle = queueTitle;
|
||||||
this.repeatMode = repeatMode;
|
this.repeatMode = repeatMode;
|
||||||
this.shuffleMode = shuffleMode;
|
this.shuffleMode = shuffleMode;
|
||||||
this.sessionExtras = sessionExtras;
|
this.sessionExtras = sessionExtras != null ? sessionExtras : Bundle.EMPTY;
|
||||||
}
|
}
|
||||||
|
|
||||||
public LegacyPlayerInfo(LegacyPlayerInfo other) {
|
public LegacyPlayerInfo(LegacyPlayerInfo other) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user