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

Commit d143142f authored by Filip Gruszczynski's avatar Filip Gruszczynski
Browse files

Fix thumbnail animation when going into fullscreen.

The fullscreen case depends on the default animation to be set, but only
multi window specs array was used.

Change-Id: I873bcf4168be76f8af66b2a1f50ba3e7e0969f6c
parent 55a309f8
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -1269,12 +1269,20 @@ public class AppTransition implements Dump {
            mNextAppTransitionType = scaleUp ? NEXT_TRANSIT_TYPE_THUMBNAIL_ASPECT_SCALE_UP
                    : NEXT_TRANSIT_TYPE_THUMBNAIL_ASPECT_SCALE_DOWN;
            mNextAppTransitionPackage = null;
            mDefaultNextAppTransitionAnimationSpec = null;
            mNextAppTransitionAnimationsSpecs.clear();
            mNextAppTransitionScaleUp = scaleUp;
            for (int i = 0; i < specs.length; i++) {
                AppTransitionAnimationSpec spec = specs[i];
                if (spec != null) {
                    mNextAppTransitionAnimationsSpecs.put(spec.taskId, spec);
                    if (i == 0) {
                        // In full screen mode, the transition code depends on the default spec to
                        // be set.
                        Rect rect = spec.rect;
                        putDefaultNextAppTransitionCoordinates(rect.left, rect.top, rect.width(),
                                rect.height());
                    }
                }
            }
            postAnimationCallback();