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

Commit 4310241a authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Don't crash in AppTransition if future returns null

Change-Id: I7e101439093062d8976d74639229a7206308ad22
parent af496d8b
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
@@ -1417,16 +1417,18 @@ public class AppTransition implements Dump {
            mDefaultNextAppTransitionAnimationSpec = null;
            mNextAppTransitionAnimationsSpecs.clear();
            mNextAppTransitionScaleUp = scaleUp;
            if (specs != null) {
                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.
                            // 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(), null);
                            putDefaultNextAppTransitionCoordinates(rect.left, rect.top,
                                    rect.width(), rect.height(), null);
                        }
                    }
                }
            }