Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BadgedImageView.java +10 −7 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BadgedImageView.java +10 −7 Original line number Diff line number Diff line Loading @@ -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(); Loading