* commit '148187255ecaaaf6a35920f779fa6a171433ccd4': Prevent infinite layout and wallpaper flashing
This commit is contained in:
@@ -4225,8 +4225,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public int finishPostLayoutPolicyLw() {
|
||||
if (mWinShowWhenLocked != null &&
|
||||
mWinShowWhenLocked != mTopFullscreenOpaqueWindowState) {
|
||||
if (mWinShowWhenLocked != null && mTopFullscreenOpaqueWindowState != null &&
|
||||
mWinShowWhenLocked.getAppToken() != mTopFullscreenOpaqueWindowState.getAppToken()
|
||||
&& isKeyguardLocked()) {
|
||||
// A dialog is dismissing the keyguard. Put the wallpaper behind it and hide the
|
||||
// fullscreen window.
|
||||
// TODO: Make sure FLAG_SHOW_WALLPAPER is restored when dialog is dismissed. Or not.
|
||||
|
||||
Reference in New Issue
Block a user