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

Commit 5f693dcb 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

am: c66d977c

Change-Id: Id67356d2c477b07abd7695279c5bd07bc43c428f
parents b6890571 c66d977c
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.