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

Commit bd8e5ea0 authored by Mykola Podolian's avatar Mykola Podolian Committed by Android (Google) Code Review
Browse files

Merge "Fixed bubble dot position on stack move." into main

parents e73e6ed0 4659cb89
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -288,13 +288,16 @@ public class BadgedImageView extends ConstraintLayout {

    /** Sets the position of the dot and badge, animating them out and back in if requested. */
    void animateDotBadgePositions(boolean onLeft) {
        mOnLeft = onLeft;

        if (onLeft != getDotOnLeft() && shouldDrawDot()) {
        if (onLeft != getDotOnLeft()) {
            if (shouldDrawDot()) {
                animateDotScale(0f /* showDot */, () -> {
                    mOnLeft = onLeft;
                    invalidate();
                    animateDotScale(1.0f, null /* after */);
                });
            } else {
                mOnLeft = onLeft;
            }
        }
        // TODO animate badge
        showBadge();