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

Commit b7048beb authored by Andy Wickham's avatar Andy Wickham
Browse files

Center navbar pulse animation.

Rather than rising up slightly, it will now expand centered on
the original bar.

X was also slightly off-center due to not accounting for the view
already being centered on the screen separately.

Before: https://screenshot.googleplex.com/A2kRfEcFWzJ8jTr.png
After: https://screenshot.googleplex.com/Bj8Mf8dwZsbr9BC.png

Fix: 309611779
Test: Manual
Flag: LEGACY ANIMATE_LPNH TEAMFOOD
Change-Id: I08dac5fea111c893d2a467fbb4d6d713dc397457
parent aa126d7a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -105,8 +105,8 @@ public class NavigationHandle extends View implements ButtonInterface {
        float height = mRadius * 2 + additionalHeight;
        float additionalWidth = mAdditionalWidthForAnimation * mPulseAnimationProgress;
        float width = getWidth() + additionalWidth;
        float x = -(additionalWidth / 2);
        float y = navHeight - mBottom - height - (additionalHeight / 2);
        float x = -additionalWidth;
        float y = navHeight - mBottom - height + (additionalHeight / 2);
        float adjustedRadius = height / 2;
        canvas.drawRoundRect(x, y, width, y + height, adjustedRadius, adjustedRadius, mPaint);
    }