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

Commit 2cc2a3b9 authored by Andrew Zeng's avatar Andrew Zeng
Browse files

DO NOT MERGE Allow windows to show when input restricted.

Allows non-activity windows to show instead of being hidden (e.g IME)
when lock screen is not showing. This is a difference from current
behavior in G when:

  1. The device is not interactive (either of AoD-on/-off).
  2. The device is interactive and isInputRestricted is true.

This allows for consistency w/ activity manager on allowing IME to be
visible whenever an activity is allowed to be visible (w/o special flags).

Bug: 72027687
Change-Id: I082babcdd4e2ca1c3188da9d43589b1d34fb70c8
(cherry picked from commit 13331922827edd3a0135a1a1be8ac505716f106a)
parent 96102e64
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3055,7 +3055,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                    || (attrs.privateFlags & PRIVATE_FLAG_SYSTEM_ERROR) != 0;
        }

        boolean keyguardLocked = isKeyguardLocked();
        boolean keyguardLocked =
                mKeyguardDelegate != null && (mKeyguardDelegate.isShowing() || mKeyguardOccluded);
        boolean hideDockDivider = attrs.type == TYPE_DOCK_DIVIDER
                && !mWindowManagerInternal.isStackVisible(WINDOWING_MODE_SPLIT_SCREEN_PRIMARY);
        return (keyguardLocked && !allowWhenLocked && win.getDisplayId() == DEFAULT_DISPLAY)