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

Commit 3ebcd865 authored by George Mount's avatar George Mount Committed by Android (Google) Code Review
Browse files

Merge "Fix endTransition index out of bounds exception." into mnc-dev

parents 7a0f54b1 80032093
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -435,10 +435,11 @@ public class TransitionManager {
        sPendingTransitions.remove(sceneRoot);

        final ArrayList<Transition> runningTransitions = getRunningTransitions().get(sceneRoot);
        if (runningTransitions != null) {
            final int count = runningTransitions.size();
            for (int i = 0; i < count; i++) {
                final Transition transition = runningTransitions.get(i);
        if (runningTransitions != null && !runningTransitions.isEmpty()) {
            // Make a copy in case this is called by an onTransitionEnd listener
            ArrayList<Transition> copy = new ArrayList(runningTransitions);
            for (int i = copy.size() - 1; i >= 0; i--) {
                final Transition transition = copy.get(i);
                transition.end();
            }
        }