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

Commit 58800b9f authored by Ashutosh Srivastava's avatar Ashutosh Srivastava
Browse files

AVRCP: Play status mapping issue involving Fast Rewind

Bluetooth media browser service was getting play status for
fast rewind as "STATE_FAST_FORWARDING" even if fast rewind was in
progress. The reason was improper mapping of the JNI event in
AvrcpControllerService.java. The fix is done by adding the
proper value for the play status of fast rewind.

Test: Manual testing by pressing fast rewind and checking for
the play status.

Change-Id: I0b3c19fb7f5881fcda921d909a1a578285f4263f
parent a86e307f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -716,7 +716,7 @@ public class AvrcpControllerService extends ProfileService {
                playbackState = PlaybackState.STATE_FAST_FORWARDING;
                break;
            case JNI_PLAY_STATUS_REV_SEEK:
                playbackState = PlaybackState.STATE_FAST_FORWARDING;
                playbackState = PlaybackState.STATE_REWINDING;
                break;
            default:
                playbackState = PlaybackState.STATE_NONE;