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

Commit c66d977c authored by Sanket Agarwal's avatar Sanket Agarwal Committed by android-build-merger
Browse files

Merge "Abort fetching items if remote sends us an error" am: 8f379479

am: bac0332b

Change-Id: Ib00e7a6023a9cde72bd17f115b11c022835bda67
parents f21a1041 bac0332b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -582,7 +582,10 @@ class AvrcpControllerStateMachine extends StateMachine {
                    // for the list to populate.
                    sendFolderBroadcastAndUpdateNode();

                    if (mCurrInd > mEndInd) {
                    if (mCurrInd > mEndInd || folderList.size() == 0) {
                        // If we have fetched all the elements or if the remotes sends us 0 elements
                        // (which can lead us into a loop since mCurrInd does not proceed) we simply
                        // abort.
                        transitionTo(mConnected);
                    } else {
                        // Fetch the next set of items.