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