OSDN Git Service

Prevent infinite layout and wallpaper flashing
authortiger_huang <tiger_huang@htc.com>
Tue, 31 Mar 2015 14:09:49 +0000 (22:09 +0800)
committertiger_huang <tiger_huang@htc.com>
Tue, 31 Mar 2015 14:09:49 +0000 (22:09 +0800)
commit517129cfa4cbbe21c5b391520cbf24fd53044781
tree0561dedad49bdb763236a305d1c66fff2f2435a9
parent631565abd6cadd65befe197afa7bac0d44f70fb2
Prevent infinite layout and wallpaper flashing

The original logic would cause mTopFullscreenOpaqueWindowState to be
hidden in PhoneWindowManager.finishPostLayoutPolicyLw(), and to be
shown in WindowAnimator.updateWindowsLocked() continuously if there
is a show-when-locked dialog.

The wallpaper would be hidden after the original wallpaper target is
hidden, before the new wallpaper target is shown.

https://code.google.com/p/android/issues/detail?id=162495

Change-Id: I918e0fa03eec38d9f0c07150c17013c6c21683cb
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java