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

Commit 8a825e90 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix that bouncer is not focusable if shown without notification shade

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test android.server.cts.KeyguardLockedTests#testDismissKeyguard_fromShowWhenLocked
Change-Id: Ia300cea18b0ed7c9bfe04f3aa051d8a04a6eaedc
parent 46fff5e9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -137,8 +137,7 @@ public class StatusBarWindowManager implements RemoteInputController.Callback {

    private void applyFocusableFlag(State state) {
        boolean panelFocusable = state.statusBarFocusable && state.panelExpanded;
        if (state.keyguardShowing && state.keyguardNeedsInput && state.bouncerShowing
                || BaseStatusBar.ENABLE_REMOTE_INPUT && state.remoteInputActive) {
        if (state.bouncerShowing || 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) {