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

Commit 45b0c897 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:...

Merge "Abort fetching items if remote sends us an error" am: 8f379479 am: bac0332b am: c66d977c
am: 5f693dcb

Change-Id: I492cc3585f9d60152a5a1055627ce8285dd3dc40
parents 14ba9aeb 5f693dcb
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.