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

Commit cb13e7c5 authored by Hemant Gupta's avatar Hemant Gupta
Browse files

AVRCP: Fix returned attributes for Genre/Play Time

Usecase:

1) Connect DUT with remote device supporting AVRCP 1.4
2) Send request to retrieve genre or play time attributes.

Observation:
DUT returns incorrect attribute id

Root cause:
Missing break in code leading to corruption of values of attributes returned.

Fix:
Add break statement missing in code.

Test: Checked that genre and play time attributes are returned correctly by DUT.

Bug: 38372332
Change-Id: I0ec2f3b8bfc6668819a207046ceb65659037b368
parent 77bb5f09
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -601,9 +601,11 @@ class BrowsedMediaPlayer {

                case AvrcpConstants.ATTRID_GENRE:
                    attrValue = extras.getString(MediaMetadata.METADATA_KEY_GENRE);
                    break;

                case AvrcpConstants.ATTRID_PLAY_TIME:
                    attrValue = extras.getString(MediaMetadata.METADATA_KEY_DURATION);
                    break;

                case AvrcpConstants.ATTRID_COVER_ART:
                    Log.e(TAG, "getAttrValue: Cover art attribute not supported");