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

Commit 4659cb89 authored by mpodolian's avatar mpodolian
Browse files

Fixed bubble dot position on stack move.

Dot is scaling to 0 from one side and than scaling up to the full size
on another side

Test: Visual
Fixes: 333740203
Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Change-Id: I080306b324161d820e06f9bab3f20f3e45e6dac7
parent e70357a6
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();