Fix broken transition to secure apps when relaunching

Previously, the logic for keeping occluded mode during transitions
would also trigger when transitioning from the lockscreen to a
SHOW_WHEN_LOCKED activity that was already on-screen, which would
then prematurely clear the occluded mode and break the launch
transition.

With the fix, the lockscreen must already be occluded before the
keep-occluded-during-transitions logic is triggered.

Bug: 21525170
Change-Id: I1d9ad95b2dd0728af7986f09adb67a617cc62cb2
This commit is contained in:
Adrian Roos
2015-05-29 15:23:18 -07:00
parent 2e2ac33e88
commit b85e1ecfdf

View File

@@ -4264,7 +4264,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
// that is being hidden in an animation - keep the
// keyguard hidden until the new window shows up and
// we know whether to show the keyguard or not.
if (win.isAnimatingLw() && appWindow && showWhenLocked) {
if (win.isAnimatingLw() && appWindow && showWhenLocked && mKeyguardHidden) {
mHideLockScreen = true;
mWinShowWhenLocked = win;
}