From 8a825e907689f8ea07c828f292801e2629d95689 Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Wed, 2 Nov 2016 18:11:03 -0700 Subject: [PATCH] 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 --- .../systemui/statusbar/phone/StatusBarWindowManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java index a7a792b1f1a70..4a2d5dcda9670 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java @@ -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) {