@@ -134,10 +134,11 @@ private void testWallpaperAndBackgroundLocked() {
134134 }
135135
136136 private void updateWindowsAppsAndRotationAnimationsLocked () {
137+ final ArrayList <AppWindowToken > appTokens = mService .mAnimatingAppTokens ;
137138 int i ;
138- final int NAT = mService . mAppTokens .size ();
139+ final int NAT = appTokens .size ();
139140 for (i =0 ; i <NAT ; i ++) {
140- final AppWindowAnimator appAnimator = mService . mAppTokens .get (i ).mAppAnimator ;
141+ final AppWindowAnimator appAnimator = appTokens .get (i ).mAppAnimator ;
141142 final boolean wasAnimating = appAnimator .animation != null
142143 && appAnimator .animation != AppWindowAnimator .sDummyAnimation ;
143144 if (appAnimator .stepAnimationLocked (mCurrentTime , mInnerDw , mInnerDh )) {
@@ -401,9 +402,10 @@ private void updateWindowsAndWallpaperLocked() {
401402 private void testTokenMayBeDrawnLocked () {
402403 // See if any windows have been drawn, so they (and others
403404 // associated with them) can now be shown.
404- final int NT = mService .mAppTokens .size ();
405+ final ArrayList <AppWindowToken > appTokens = mService .mAnimatingAppTokens ;
406+ final int NT = appTokens .size ();
405407 for (int i =0 ; i <NT ; i ++) {
406- AppWindowToken wtoken = mService . mAppTokens .get (i );
408+ AppWindowToken wtoken = appTokens .get (i );
407409 if (wtoken .mAppAnimator .freezingScreen ) {
408410 int numInteresting = wtoken .numInterestingWindows ;
409411 if (numInteresting > 0 && wtoken .numDrawnWindows >= numInteresting ) {
0 commit comments