Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
de871ea2
authored
Apr 26, 2022
by
bachinger
Committed by
Ian Baker
May 09, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Some fixes/cleanup in MediaControllerImplLegacy
PiperOrigin-RevId: 444542725
parent
6708b43b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
libraries/session/src/main/java/androidx/media3/session/MediaControllerImplLegacy.java
libraries/session/src/main/java/androidx/media3/session/MediaControllerImplLegacy.java
View file @
de871ea2
...
...
@@ -846,7 +846,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
calculateCurrentItemIndexAfterRemoveItems
(
currentMediaItemIndex
,
fromIndex
,
toIndex
);
if
(
currentMediaItemIndexAfterRemove
==
C
.
INDEX_UNSET
)
{
currentMediaItemIndexAfterRemove
=
Util
.
constrainValue
(
fromIndex
,
/* min= */
0
,
/*
toInde
x= */
lastItemIndexAfterRemove
);
Util
.
constrainValue
(
fromIndex
,
/* min= */
0
,
/*
ma
x= */
lastItemIndexAfterRemove
);
Log
.
w
(
TAG
,
"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
.
copyWithExtraBinderGetters
(
convertToSafePlaybackStateCompat
(
controllerCompat
.
getPlaybackState
()),
controllerCompat
.
get
Shuffle
Mode
(),
controllerCompat
.
get
Repeat
Mode
());
controllerCompat
.
get
Repeat
Mode
(),
controllerCompat
.
get
Shuffle
Mode
());
boolean
isCaptioningEnabled
=
controllerCompat
.
isCaptioningEnabled
();
onCaptioningEnabledChanged
(
isCaptioningEnabled
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment