Merge pull request #3977 from Khang-NT/dev-v2

Remove duplicate code MediaSessionConnector.java
This commit is contained in:
ojw28 2018-04-11 00:33:31 +01:00 committed by GitHub
commit d075945487
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();
}