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

Commit 04600023 authored by George Mount's avatar George Mount
Browse files

Fixed: TransitionSet setStartDelay did nothing.

Bug 17452965

Change-Id: Id2fd6ed3bd8e7156dd3d22dcd83117cec12e3528
parent 8232d822
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -390,7 +390,20 @@ public class TransitionSet extends Transition {
            ArrayList<TransitionValues> endValuesList) {
        startValues = removeExcludes(startValues);
        endValues = removeExcludes(endValues);
        for (Transition childTransition : mTransitions) {
        long startDelay = getStartDelay();
        int numTransitions = mTransitions.size();
        for (int i = 0; i < numTransitions; i++) {
            Transition childTransition = mTransitions.get(i);
            // We only set the start delay on the first transition if we are playing
            // the transitions sequentially.
            if (startDelay > 0 && (mPlayTogether || i == 0)) {
                long childStartDelay = childTransition.getStartDelay();
                if (childStartDelay > 0) {
                    childTransition.setStartDelay(startDelay + childStartDelay);
                } else {
                    childTransition.setStartDelay(startDelay);
                }
            }
            childTransition.createAnimators(sceneRoot, startValues, endValues, startValuesList,
                    endValuesList);
        }