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

Commit d2a7c215 authored by Joshua Tsuji's avatar Joshua Tsuji
Browse files

Re-set stack position after bubbles are reordered.

This causes all bubbles to be set to the correct translation with no animation. Animations will be added later - some upcoming modifications to the physics animator will make that far easier.

Bug: 137214359
Test: atest SystemUITests
Change-Id: Id3af542201495f99f225416cad8d1d9055543b09
parent 41346ef1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -672,7 +672,11 @@ public class StackAnimationController extends
    }

    @Override
    void onChildReordered(View child, int oldIndex, int newIndex) {}
    void onChildReordered(View child, int oldIndex, int newIndex) {
        if (isStackPositionSet()) {
            setStackPosition(mStackPosition);
        }
    }

    @Override
    void onActiveControllerForLayout(PhysicsAnimationLayout layout) {