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
41d8aa8e
authored
Mar 12, 2018
by
Khang Nguyen
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove duplicate code MediaSessionConnector.java
Fix updateMediaSessionMetadata() called twice;
parent
4fa383c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.java
extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/MediaSessionConnector.java
View file @
41d8aa8e
...
@@ -674,12 +674,8 @@ public final class MediaSessionConnector {
...
@@ -674,12 +674,8 @@ public final class MediaSessionConnector {
// active queue item and queue navigation actions may need to be updated
// active queue item and queue navigation actions may need to be updated
updateMediaSessionPlaybackState
();
updateMediaSessionPlaybackState
();
}
}
if
(
currentWindowCount
!=
windowCount
)
{
// active queue item and queue navigation actions may need to be updated
updateMediaSessionPlaybackState
();
}
currentWindowCount
=
windowCount
;
currentWindowCount
=
windowCount
;
currentWindowIndex
=
player
.
getCurrentWindowIndex
()
;
currentWindowIndex
=
windowIndex
;
updateMediaSessionMetadata
();
updateMediaSessionMetadata
();
}
}
...
...
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