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

Commit b0482fe2 authored by Puneet Kumar's avatar Puneet Kumar Committed by android-build-merger
Browse files

Merge "Prevent recents from coming up when in SUW" into mnc-dr-dev am: ca9c43b2

am: fc12c7c1

* commit 'fc12c7c1':
  Prevent recents from coming up when in SUW
parents a540cbd0 fc12c7c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2995,7 +2995,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {

        // Display task switcher for ALT-TAB.
        if (down && repeatCount == 0 && keyCode == KeyEvent.KEYCODE_TAB) {
            if (mRecentAppsHeldModifiers == 0 && !keyguardOn) {
            if (mRecentAppsHeldModifiers == 0 && !keyguardOn && isUserSetupComplete()) {
                final int shiftlessModifiers = event.getModifiers() & ~KeyEvent.META_SHIFT_MASK;
                if (KeyEvent.metaStateHasModifiers(shiftlessModifiers, KeyEvent.META_ALT_ON)) {
                    mRecentAppsHeldModifiers = shiftlessModifiers;