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

Commit bb336699 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix Keyboard flicker

Bouncer should not be focusable if we are on Keyguard and not
occluded, and we don't need the IME. Otherwise, we'd see a flicker
of the IME animating out when the bouncer comes up on pattern/PIN
screens.

Test: Set pattern, open app with IME open, lock screen, dismiss
Keyguard.
Test: Set password, dismiss Keyguard.

Bug: 32894573
Change-Id: I25da76b66b1cd5722d5929bb2d2658282faef517
parent af221d16
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -137,7 +137,8 @@ public class StatusBarWindowManager implements RemoteInputController.Callback {

    private void applyFocusableFlag(State state) {
        boolean panelFocusable = state.statusBarFocusable && state.panelExpanded;
        if (state.bouncerShowing || BaseStatusBar.ENABLE_REMOTE_INPUT && state.remoteInputActive) {
        if (state.bouncerShowing && (state.keyguardOccluded || state.keyguardNeedsInput)
                || BaseStatusBar.ENABLE_REMOTE_INPUT && state.remoteInputActive) {
            mLpChanged.flags &= ~WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
            mLpChanged.flags &= ~WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM;
        } else if (state.isKeyguardShowingAndNotOccluded() || panelFocusable) {