Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12f0104e authored by Craig Mautner's avatar Craig Mautner Committed by Android Git Automerger
Browse files

am 4d6a0df3: Merge "Do not cancel animations when switching." into jb-dev

* commit '4d6a0df3':
  Do not cancel animations when switching.
parents 05fee7bd 4d6a0df3
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -3966,15 +3966,6 @@ public class WindowManagerService extends IWindowManager.Stub
        }
    }

    private void cancelWindowAnimations(final AppWindowToken wtoken) {
        for (int i = wtoken.windows.size() - 1; i >= 0; i--) {
            final WindowStateAnimator winAnimator = wtoken.windows.get(i).mWinAnimator;
            if (winAnimator.isAnimating()) {
                winAnimator.clearAnimation();
            }
        }
    }

    public void executeAppTransition() {
        if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS,
                "executeAppTransition()")) {
@@ -3990,12 +3981,6 @@ public class WindowManagerService extends IWindowManager.Stub
            }
            if (mNextAppTransition != WindowManagerPolicy.TRANSIT_UNSET) {
                mAppTransitionReady = true;
                for (int i = mOpeningApps.size() - 1; i >= 0; i--) {
                    cancelWindowAnimations(mOpeningApps.get(i));
                }
                for (int i = mClosingApps.size() - 1; i >= 0; i--) {
                    cancelWindowAnimations(mClosingApps.get(i));
                }
                final long origId = Binder.clearCallingIdentity();
                performLayoutAndPlaceSurfacesLocked();
                Binder.restoreCallingIdentity(origId);
@@ -4343,7 +4328,6 @@ public class WindowManagerService extends IWindowManager.Stub

                if (DEBUG_APP_TRANSITIONS) Slog.v(
                        TAG, "Setting dummy animation on: " + wtoken);
                cancelWindowAnimations(wtoken);
                wtoken.mAppAnimator.setDummyAnimation();
                mOpeningApps.remove(wtoken);
                mClosingApps.remove(wtoken);