Merge "Fix wrong candidate window when display immersive_mode_confirm." into rvc-dev

This commit is contained in:
Wale Ogunwale
2020-07-17 23:28:04 +00:00
committed by Android (Google) Code Review

View File

@@ -3292,7 +3292,7 @@ public class DisplayPolicy {
// keys, we let it keep controlling the visibility.
final boolean lastFocusCanReceiveKeys =
(mLastFocusedWindow != null && mLastFocusedWindow.canReceiveKeys());
winCandidate = isKeyguardShowing() ? mNotificationShade
winCandidate = isKeyguardShowing() && !isKeyguardOccluded() ? mNotificationShade
: lastFocusCanReceiveKeys ? mLastFocusedWindow
: mTopFullscreenOpaqueWindowState;
if (winCandidate == null) {