diff options
| author | 2016-04-25 17:21:34 -0700 | |
|---|---|---|
| committer | 2016-04-25 17:21:34 -0700 | |
| commit | 23fd1db68d1c28c8edc4ece1a0a1aa36c278e980 (patch) | |
| tree | f75ad7cb03ea0e2657ddeac04dcf498a2e7a7e93 | |
| parent | 4ace8366619d04d326505ad689c5d43707f2aaea (diff) | |
Don't hide app windows due to not showing when locked when keyguard is hidden
This worked in pre-N because the only visible app was the app that can be
shown when the keyguard is hidden. That isn't the case in multi-window mode
where one of the apps can be shown when locked and the other doesn't have
the show when locked flag. Only hide the other app if the keyguard is shown.
Bug: 28368875
Change-Id: I5039098db74492fadf667fed24fc58448436681a
| -rw-r--r-- | services/core/java/com/android/server/policy/PhoneWindowManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java index 9f31f4fb3f59..cd27fb87357b 100644 --- a/services/core/java/com/android/server/policy/PhoneWindowManager.java +++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java @@ -4912,7 +4912,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { } } - if (mWinShowWhenLocked != null && + if (!mKeyguardHidden && mWinShowWhenLocked != null && mWinShowWhenLocked.getAppToken() != win.getAppToken() && (attrs.flags & FLAG_SHOW_WHEN_LOCKED) == 0) { win.hideLw(false); |