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

Commit 06a9d8ba authored by Ashutosh Srivastava's avatar Ashutosh Srivastava Committed by android-build-merger
Browse files

Merge "AVRCP: Stop Fast forward and fast rewind" am: 786e3c5d am: 1119092b

am: af92a444

Change-Id: I85e264dafc6d61cfa11b043a550d8738184db6ee
parents 7c2bda43 af92a444
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -508,7 +508,17 @@ public class BluetoothMediaBrowserService extends MediaBrowserService {
        if (mCurrentlyHeldKey != 0) {
            mAvrcpCtrlSrvc.sendPassThroughCmd(mA2dpDevice, mCurrentlyHeldKey,
                    AvrcpControllerService.KEY_STATE_RELEASED);

            if (mCurrentlyHeldKey == cmd) {
                // Return to prevent starting FF/FR operation again
                mCurrentlyHeldKey = 0;
                return;
            } else {
                // FF/FR is in progress and other operation is desired
                // so after stopping FF/FR, not returning so that command
                // can be sent for the desired operation.
                mCurrentlyHeldKey = 0;
            }
        }

        // Send the pass through.