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

Commit 0a4f8433 authored by Lyn Han's avatar Lyn Han Committed by Android (Google) Code Review
Browse files

Merge "Scale up dot and position it closer to icon" into qt-r1-bubbles-dev

parents 09555761 6e81962b
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ public class BubbleFlyoutView extends FrameLayout {
    /** Extra scale down of the dot provides room for error in estimating actual dot location.
     * At the end of the flyout-to-dot animation, wherever the small dot ends up, its disappearance
     * and the appearance of the larger real dot forms a cohesive animation.*/
    private static final float DOT_SCALE = 0.6f;
    private static final float DOT_SCALE = 0.8f;

    /** Callback to run when the flyout is hidden. */
    private Runnable mOnHide;
@@ -262,15 +262,13 @@ public class BubbleFlyoutView extends FrameLayout {
            final float distanceFromFlyoutLeftToDotCenterX =
                    mFlyoutSpaceFromBubble + mBubbleIconTopPadding + mOriginalDotSize / 2;
            if (mArrowPointingLeft) {
                mTranslationXWhenDot = -distanceFromFlyoutLeftToDotCenterX - mNewDotRadius;
                mTranslationXWhenDot = -distanceFromFlyoutLeftToDotCenterX - (mOriginalDotSize / 2);
            } else {
                mTranslationXWhenDot =
                        getWidth() + distanceFromFlyoutLeftToDotCenterX - mNewDotRadius;
                        getWidth() + distanceFromFlyoutLeftToDotCenterX - (mOriginalDotSize / 2);
            }

            mTranslationYWhenDot =
                    getHeight() / 2f
                            - mNewDotRadius
                            - mBubbleSize / 2f
                            + mOriginalDotSize / 2;
        });