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

Commit af92a444 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

Change-Id: Iaa9d251f9d0751efc055f625ed5c42177ea3442e
parents 64dbd2d4 1119092b
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.