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

Commit e25b96fd authored by pramod kotreshappa's avatar pramod kotreshappa Committed by Gerrit - the friendly Code Review server
Browse files

Bluetooth: Fix to respond to Browse command when not supported

Send error response for GetFolderItem with NowPlaying scope AVRCP
browse command sent by remote prior to SetBrowsedPlayer command.

Change-Id: I878e71d5534e055a0d498317200ee13cbba878dd
parent 70f0c7b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2961,7 +2961,7 @@ public final class Avrcp {
                while (rccIterator.hasNext()) {
                    final MediaPlayerInfo di = rccIterator.next();
                    if (di.GetPlayerFocus()) {
                        if (!di.IsRemoteAddressable()) {
                        if (!di.IsRemoteAddressable() || mCurrentPath.equals(PATH_INVALID)) {
                            getFolderItemsRspNative((byte)INTERNAL_ERROR, numItems, itemType,
                                uid, type, playable, displayName, numAtt, attValues, attIds);
                            Log.e(TAG, "GetFolderItems fails: addressed player is not browsable");