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

Commit 7fe63936 authored by Kai Wang's avatar Kai Wang Committed by android-build-merger
Browse files

Merge "AvrcpCtrSM send INTERNAL_CMD_TIMEOUT"

am: 97c559ab

Change-Id: Id4eda7617f1913b2024202d5d332b3ff5cfbfe22
parents 9b94361f 97c559ab
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -544,9 +544,10 @@ class AvrcpControllerStateMachine extends StateMachine {

        @Override
        public void enter() {
            // Setup the timeouts.
            super.enter();
            mCurrInd = 0;
            mFolderList.clear();

            callNativeFunctionForScope(mStartInd,
                    Math.min(mEndInd, mStartInd + GET_FOLDER_ITEMS_PAGINATION_SIZE - 1));
        }
@@ -745,6 +746,11 @@ class AvrcpControllerStateMachine extends StateMachine {
                    sendMessage(MESSAGE_INTERNAL_MOVE_N_LEVELS_UP);
                    break;

                case MESSAGE_INTERNAL_CMD_TIMEOUT:
                    broadcastFolderList(BrowseTree.ROOT, EMPTY_MEDIA_ITEM_LIST);
                    transitionTo(mConnected);
                    break;

                default:
                    Log.d(STATE_TAG, "deferring message " + msg + " to connected!");
                    deferMessage(msg);