Remove duplicate code MediaSessionConnector.java

Fix updateMediaSessionMetadata() called twice;
This commit is contained in:
Khang Nguyen 2018-03-12 19:48:52 +07:00
parent 4fa383c026
commit 41d8aa8e54

View file

@ -674,12 +674,8 @@ public final class MediaSessionConnector {
// active queue item and queue navigation actions may need to be updated
updateMediaSessionPlaybackState();
}
if (currentWindowCount != windowCount) {
// active queue item and queue navigation actions may need to be updated
updateMediaSessionPlaybackState();
}
currentWindowCount = windowCount;
currentWindowIndex = player.getCurrentWindowIndex();
currentWindowIndex = windowIndex;
updateMediaSessionMetadata();
}