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

Commit 4d6a0df3 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Do not cancel animations when switching." into jb-dev

parents 085c4825 9fec7795
Loading
Loading
Loading
Loading
+0 −16
Original line number Original line 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() {
    public void executeAppTransition() {
        if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS,
        if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS,
                "executeAppTransition()")) {
                "executeAppTransition()")) {
@@ -3990,12 +3981,6 @@ public class WindowManagerService extends IWindowManager.Stub
            }
            }
            if (mNextAppTransition != WindowManagerPolicy.TRANSIT_UNSET) {
            if (mNextAppTransition != WindowManagerPolicy.TRANSIT_UNSET) {
                mAppTransitionReady = true;
                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();
                final long origId = Binder.clearCallingIdentity();
                performLayoutAndPlaceSurfacesLocked();
                performLayoutAndPlaceSurfacesLocked();
                Binder.restoreCallingIdentity(origId);
                Binder.restoreCallingIdentity(origId);
@@ -4343,7 +4328,6 @@ public class WindowManagerService extends IWindowManager.Stub


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