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

Commit 25a738fb authored by Chet Haase's avatar Chet Haase
Browse files

Fix in transition canceling logic

The logic that canceled underlying animations caused a problem
when there were more than one animation in the list (due to removing
items from a list that was currently being processed elsewhere).

Change-Id: Ie207f340b5d7de4ffcf56a26c05ec394abb80224
parent 972cfadb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -798,7 +798,7 @@ public abstract class Transition {
        // TODO: how does this work with instances?
        // TODO: this doesn't actually do *anything* yet
        int numAnimators = mCurrentAnimators.size();
        for (int i = 0; i < numAnimators; ++i) {
        for (int i = numAnimators - 1; i >= 0; i--) {
            Animator animator = mCurrentAnimators.get(i);
            animator.cancel();
        }
+7 −0
Original line number Diff line number Diff line
@@ -9,5 +9,12 @@
            android:layout_alignParentTop="true"
            android:layout_alignParentLeft="true"
            android:text="@string/state1"/>
    <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/button1"
            android:layout_alignLeft="@+id/button"
            android:layout_below="@+id/button"
            android:text="@string/state1"/>

</RelativeLayout>
 No newline at end of file
+7 −0
Original line number Diff line number Diff line
@@ -9,5 +9,12 @@
            android:id="@+id/button"
            android:layout_alignParentRight="true"
            android:text="@string/state2"/>
    <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/button1"
            android:layout_alignLeft="@+id/button"
            android:layout_below="@+id/button"
            android:text="@string/state2"/>

</RelativeLayout>
 No newline at end of file
+7 −0
Original line number Diff line number Diff line
@@ -9,5 +9,12 @@
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true"
            android:text="@string/state3"/>
    <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/button1"
            android:layout_alignLeft="@+id/button"
            android:layout_above="@+id/button"
            android:text="@string/state3"/>

</RelativeLayout>
 No newline at end of file
+7 −0
Original line number Diff line number Diff line
@@ -9,5 +9,12 @@
            android:layout_alignParentBottom="true"
            android:layout_alignParentRight="true"
            android:text="@string/state4"/>
    <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/button1"
            android:layout_alignLeft="@+id/button"
            android:layout_above="@+id/button"
            android:text="@string/state4"/>

</RelativeLayout>
 No newline at end of file
Loading