Commit 41d8aa8e by Khang Nguyen

Remove duplicate code MediaSessionConnector.java

Fix updateMediaSessionMetadata() called twice;
parent 4fa383c0
...@@ -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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment