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

Unverified Commit 1296fb31 authored by Dark Eyes's avatar Dark Eyes Committed by Michael Bestas
Browse files

Fix long press volume buttons skip tracks

Without that patch, the volume changes up or down prior
to skipping tracks because the sendvolumekeyevent doesn't
have the mayChangeVolume condition. Also, that part is
useless cause the mUseTvRouting condition is taken care
of correctly later.

Change-Id: I88757315f135f013e7692861d46b3a07fbfc07d5
parent a52b8028
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -6398,17 +6398,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                        }
                    }
                }
                if (mUseTvRouting) {
                    // On TVs, defer special key handlings to
                    // {@link interceptKeyBeforeDispatching()}.
                    result |= ACTION_PASS_TO_USER;
                } else if ((result & ACTION_PASS_TO_USER) == 0) {
                    // If we aren't passing to the user and no one else
                    // handled it send it to the session manager to
                    // figure out.
                    MediaSessionLegacyHelper.getHelper(mContext)
                            .sendVolumeKeyEvent(event, true);
                }

                // Disable music and volume control when used as wake key
                if ((result & ACTION_PASS_TO_USER) == 0 && !mVolumeWakeScreen) {