mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Some fixes/cleanup in MediaControllerImplLegacy
PiperOrigin-RevId: 444542725
This commit is contained in:
parent
6708b43bfb
commit
de871ea273
1 changed files with 3 additions and 3 deletions
|
|
@ -846,7 +846,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
|
||||||
calculateCurrentItemIndexAfterRemoveItems(currentMediaItemIndex, fromIndex, toIndex);
|
calculateCurrentItemIndexAfterRemoveItems(currentMediaItemIndex, fromIndex, toIndex);
|
||||||
if (currentMediaItemIndexAfterRemove == C.INDEX_UNSET) {
|
if (currentMediaItemIndexAfterRemove == C.INDEX_UNSET) {
|
||||||
currentMediaItemIndexAfterRemove =
|
currentMediaItemIndexAfterRemove =
|
||||||
Util.constrainValue(fromIndex, /* min= */ 0, /* toIndex= */ lastItemIndexAfterRemove);
|
Util.constrainValue(fromIndex, /* min= */ 0, /* max= */ lastItemIndexAfterRemove);
|
||||||
Log.w(
|
Log.w(
|
||||||
TAG,
|
TAG,
|
||||||
"Currently playing item will be removed and added back to mimic move."
|
"Currently playing item will be removed and added back to mimic move."
|
||||||
|
|
@ -1550,8 +1550,8 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
|
||||||
pendingLegacyPlayerInfo =
|
pendingLegacyPlayerInfo =
|
||||||
pendingLegacyPlayerInfo.copyWithExtraBinderGetters(
|
pendingLegacyPlayerInfo.copyWithExtraBinderGetters(
|
||||||
convertToSafePlaybackStateCompat(controllerCompat.getPlaybackState()),
|
convertToSafePlaybackStateCompat(controllerCompat.getPlaybackState()),
|
||||||
controllerCompat.getShuffleMode(),
|
controllerCompat.getRepeatMode(),
|
||||||
controllerCompat.getRepeatMode());
|
controllerCompat.getShuffleMode());
|
||||||
boolean isCaptioningEnabled = controllerCompat.isCaptioningEnabled();
|
boolean isCaptioningEnabled = controllerCompat.isCaptioningEnabled();
|
||||||
onCaptioningEnabledChanged(isCaptioningEnabled);
|
onCaptioningEnabledChanged(isCaptioningEnabled);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue