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

Commit 5e8801cc authored by Robert Snoeberger's avatar Robert Snoeberger
Browse files

Revert "Don't show global actions if already handled"

This reverts commit 62b08743.

Reason for revert: The tests are failing consistently now, not just flaking. The problem is that `adb shell input keyevent --longpress 26` doesn't open global actions dialog after a reboot. After the dialog has been opened the first time, it will start working.

Change-Id: I32faba89d19b24bc4141cc9bb56abffb70aeb52f
Bug: 156037650
parent 62b08743
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -1222,12 +1222,10 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            case LONG_PRESS_POWER_NOTHING:
                break;
            case LONG_PRESS_POWER_GLOBAL_ACTIONS:
                if (!mPowerKeyHandled) {
                mPowerKeyHandled = true;
                performHapticFeedback(HapticFeedbackConstants.LONG_PRESS, false,
                        "Power - Long Press - Global Actions");
                showGlobalActionsInternal();
                }
                break;
            case LONG_PRESS_POWER_SHUT_OFF:
            case LONG_PRESS_POWER_SHUT_OFF_NO_CONFIRM: