Show all windows with FLAG_SHOW_WHEN_LOCKED over lock screen if

we're already showing some app over the lock screen.

bug: 25685940
Change-Id: Ib7869f58e2903199470a95dfb796d063bc8d0c51
This commit is contained in:
Chong Zhang
2015-11-23 16:41:38 -08:00
parent 95cdbd6f6d
commit 95094d17cb

View File

@@ -220,8 +220,8 @@ public class WindowAnimator {
if (appShowWhenLocked != null) {
allowWhenLocked |= appShowWhenLocked == win.mAppToken
// Show all SHOW_WHEN_LOCKED windows while they're animating
|| (win.mAttrs.flags & FLAG_SHOW_WHEN_LOCKED) != 0 && win.isAnimatingLw()
// Show all SHOW_WHEN_LOCKED windows if some apps are shown over lockscreen
|| (win.mAttrs.flags & FLAG_SHOW_WHEN_LOCKED) != 0
// Show error dialogs over apps that dismiss keyguard.
|| (win.mAttrs.privateFlags & PRIVATE_FLAG_SYSTEM_ERROR) != 0;
}