OSDN Git Service

Fix endless looping in layout.
authorCraig Mautner <cmautner@google.com>
Sat, 7 Apr 2012 01:04:13 +0000 (18:04 -0700)
committerCraig Mautner <cmautner@google.com>
Sat, 7 Apr 2012 01:04:13 +0000 (18:04 -0700)
commit3de422fe4fe903b1370f3f7ee9c7086966e15b28
tree93d79a5d3ba08dce05a92ba20cb0c202cb7a0e65
parent1ade5ae9c812464f086f2151069781db1b27db2f
Fix endless looping in layout.

An odd alignment of the stars can end up with all of mAppToken.allDrawn
animating and mAppToken.startingDisplayed all false, and animation not
null. In such a case we can continue returning false but still pass
the test in WindowAnimator.updateWindowsAndRotation setting
wasAnimating to true. The combination continually sets the
FINISH_LAYOUT_REDO_WALLPAPER bit in mPendingLayoutChanges.

Fixes bug 6304838.

Change-Id: Ie7a7b39ea218213f51dc3df3eefe4ff03f1d885d
services/java/com/android/server/wm/AppWindowAnimator.java