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

Commit d79015de authored by Ajay Panicker's avatar Ajay Panicker
Browse files

Return on available players changed and clear state for addr player changed

Bug: 2662710
Test: Switch players soon after boot and see that available players changed
      doesn't get sent twice
Change-Id: I41713b82d98707330453d2afa328f0d4d7cbc291
parent f7404b7a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -969,11 +969,13 @@ public final class Avrcp {
                registerNotificationRspAvalPlayerChangedNative(
                        AvrcpConstants.NOTIFICATION_TYPE_CHANGED);
                mAvailablePlayerViewChanged = false;
                return;
            }
            if (mAddrPlayerChangedNT == AvrcpConstants.NOTIFICATION_TYPE_INTERIM
                    && mReportedPlayerID != mCurrAddrPlayerID) {
                registerNotificationRspAvalPlayerChangedNative(
                        AvrcpConstants.NOTIFICATION_TYPE_CHANGED);
                mAvailablePlayerViewChanged = false;
                registerNotificationRspAddrPlayerChangedNative(
                        AvrcpConstants.NOTIFICATION_TYPE_CHANGED, mCurrAddrPlayerID, sUIDCounter);
                mAddrPlayerChangedNT = AvrcpConstants.NOTIFICATION_TYPE_CHANGED;