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

Commit 786e3c5d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "AVRCP: Stop Fast forward and fast rewind"

parents 061946aa 062c814a
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.