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
This commit is contained in:
Craig Mautner
2012-04-06 18:04:13 -07:00
parent 1ade5ae9c8
commit 3de422fe4f

View File

@ -224,7 +224,7 @@ public class AppWindowAnimator {
hasTransformation = false;
if (!animating) {
if (!animating && animation == null) {
return false;
}