Merge "Fix wrong candidate window when display immersive_mode_confirm." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0bf88c5ad2
@@ -3292,7 +3292,7 @@ public class DisplayPolicy {
|
|||||||
// keys, we let it keep controlling the visibility.
|
// keys, we let it keep controlling the visibility.
|
||||||
final boolean lastFocusCanReceiveKeys =
|
final boolean lastFocusCanReceiveKeys =
|
||||||
(mLastFocusedWindow != null && mLastFocusedWindow.canReceiveKeys());
|
(mLastFocusedWindow != null && mLastFocusedWindow.canReceiveKeys());
|
||||||
winCandidate = isKeyguardShowing() ? mNotificationShade
|
winCandidate = isKeyguardShowing() && !isKeyguardOccluded() ? mNotificationShade
|
||||||
: lastFocusCanReceiveKeys ? mLastFocusedWindow
|
: lastFocusCanReceiveKeys ? mLastFocusedWindow
|
||||||
: mTopFullscreenOpaqueWindowState;
|
: mTopFullscreenOpaqueWindowState;
|
||||||
if (winCandidate == null) {
|
if (winCandidate == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user