@@ -3966,15 +3966,6 @@ public void overridePendingAppTransitionThumb(Bitmap srcThumb, int startX,
39663966 }
39673967 }
39683968
3969- private void cancelWindowAnimations (final AppWindowToken wtoken ) {
3970- for (int i = wtoken .windows .size () - 1 ; i >= 0 ; i --) {
3971- final WindowStateAnimator winAnimator = wtoken .windows .get (i ).mWinAnimator ;
3972- if (winAnimator .isAnimating ()) {
3973- winAnimator .clearAnimation ();
3974- }
3975- }
3976- }
3977-
39783969 public void executeAppTransition () {
39793970 if (!checkCallingPermission (android .Manifest .permission .MANAGE_APP_TOKENS ,
39803971 "executeAppTransition()" )) {
@@ -3990,12 +3981,6 @@ public void executeAppTransition() {
39903981 }
39913982 if (mNextAppTransition != WindowManagerPolicy .TRANSIT_UNSET ) {
39923983 mAppTransitionReady = true ;
3993- for (int i = mOpeningApps .size () - 1 ; i >= 0 ; i --) {
3994- cancelWindowAnimations (mOpeningApps .get (i ));
3995- }
3996- for (int i = mClosingApps .size () - 1 ; i >= 0 ; i --) {
3997- cancelWindowAnimations (mClosingApps .get (i ));
3998- }
39993984 final long origId = Binder .clearCallingIdentity ();
40003985 performLayoutAndPlaceSurfacesLocked ();
40013986 Binder .restoreCallingIdentity (origId );
@@ -4343,7 +4328,6 @@ public void setAppVisibility(IBinder token, boolean visible) {
43434328
43444329 if (DEBUG_APP_TRANSITIONS ) Slog .v (
43454330 TAG , "Setting dummy animation on: " + wtoken );
4346- cancelWindowAnimations (wtoken );
43474331 wtoken .mAppAnimator .setDummyAnimation ();
43484332 mOpeningApps .remove (wtoken );
43494333 mClosingApps .remove (wtoken );
0 commit comments