Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82540ce4 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

release-request-0d94aeff-e9b0-4346-a84f-6bebd4c3c781-for-git_oc-dr1-release-42...

release-request-0d94aeff-e9b0-4346-a84f-6bebd4c3c781-for-git_oc-dr1-release-4257853 snap-temp-L72400000090817228

Change-Id: If164aa8bed77fd2c37d46eb39c35a437cb0516c1
parents 1249367b bc6b1295
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1023,7 +1023,7 @@ public final class Avrcp {
            if ((newQueueId == -1 || newQueueId != mLastQueueId)
                    && currentAttributes.equals(mMediaAttributes)
                    && newPlayStatus == PLAYSTATUS_PLAYING
                    && mReportedPlayStatus != PLAYSTATUS_PLAYING) {
                    && mReportedPlayStatus == PLAYSTATUS_STOPPED) {
                // Most carkits like seeing the track changed before the
                // playback state changed, but some controllers are slow
                // to update their metadata. Hold of on sending the playback state
@@ -2045,7 +2045,8 @@ public final class Avrcp {
            int players = 1;
            for (Map.Entry<Integer, MediaPlayerInfo> entry : mMediaPlayerInfoList.entrySet()) {
                int idx = players;
                if (entry.getKey() == mCurrAddrPlayerID) idx = 0;
                if (entry.getKey() == mCurrAddrPlayerID || mMediaPlayerInfoList.size() == 1)
                    idx = 0;
                MediaPlayerInfo info = entry.getValue();
                playerIds[idx] = entry.getKey();
                playerTypes[idx] = info.getMajorType();