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

Commit be2ca45c authored by Chong Zhang's avatar Chong Zhang
Browse files

Fix crash with animation specs

Change-Id: I72ed5b19aaede0c58ea0b8665409721824ec6480
parent e73f6141
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3704,6 +3704,10 @@ public class WindowManagerService extends IWindowManager.Stub
        // This is used by freeform <-> recents windows transition. We need to synchronize
        // the animation with the appearance of the content of recents, so we will make
        // animation stay on the first or last frame a little longer.
        if (specs == null) {
            Slog.wtf(TAG, "prolongAnimationsFromSpecs: AppTransitionAnimationSpec is null!");
            return;
        }
        mTmpTaskIds.clear();
        for (int i = specs.length - 1; i >= 0; i--) {
            mTmpTaskIds.put(specs[i].taskId, 0);