Merge "Fix wrong candidate window when display immersive_mode_confirm." into rvc-dev am: 0bf88c5ad2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12166481 Change-Id: I41b05782363a791895152060bcb0f6d58128704f
This commit is contained in:
@@ -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