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

Commit 1119092b 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

Change-Id: If5bc56f3ac52b71bf60f82624230525f9c580e9a
parents f9a28c48 786e3c5d
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.