diff options
| author | 2020-07-18 00:01:30 +0000 | |
|---|---|---|
| committer | 2020-07-18 00:01:30 +0000 | |
| commit | a63f796e9ac2948cf969012c8f0ce22cd0ab703b (patch) | |
| tree | 3f75b4ab7b95e3328fc1a1aa2e3e53b1edced8fb | |
| parent | 7b43feb049eeb10bdca426adc4c86eccf6d272a7 (diff) | |
| parent | 49b350a4c8fc5a9bb47ce0941c564cd94faf4f73 (diff) | |
Merge "Fix wrong candidate window when display immersive_mode_confirm." into rvc-dev am: 0bf88c5ad2 am: 49b350a4c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12166481
Change-Id: Id131b540b88f054637f4edf52a00d58f9f304626
| -rw-r--r-- | services/core/java/com/android/server/wm/DisplayPolicy.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/DisplayPolicy.java b/services/core/java/com/android/server/wm/DisplayPolicy.java index 605d0b2cc127..0d467c50aa11 100644 --- a/services/core/java/com/android/server/wm/DisplayPolicy.java +++ b/services/core/java/com/android/server/wm/DisplayPolicy.java @@ -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) { |