From 28ad76fb6472e706a2c5addec3482d01da84c72b Mon Sep 17 00:00:00 2001 From: fbaron Date: Fri, 14 Apr 2023 16:41:28 -0700 Subject: [PATCH] Fix progress and plate width for download app It looks like the plate width wasn't quite right as it's supposed to be half the width of the progress bar width. This should fix that. Bug: 267272201 Test: Verify that the download app ux matches spec in bug Change-Id: Ifbcb1e2d31cd8d9c20a69e8c64104198563f7cf9 --- src/com/android/launcher3/graphics/PreloadIconDrawable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher3/graphics/PreloadIconDrawable.java b/src/com/android/launcher3/graphics/PreloadIconDrawable.java index b569fc334d..d366c4ae0d 100644 --- a/src/com/android/launcher3/graphics/PreloadIconDrawable.java +++ b/src/com/android/launcher3/graphics/PreloadIconDrawable.java @@ -78,9 +78,9 @@ public class PreloadIconDrawable extends FastBitmapDrawable { private static final float SMALL_SCALE = ENABLE_DOWNLOAD_APP_UX_V3.get() ? 0.8f : 0.7f; private static final float PROGRESS_STROKE_SCALE = ENABLE_DOWNLOAD_APP_UX_V2.get() - ? 0.06666667f + ? 0.055f : 0.075f; - private static final float PROGRESS_BOUNDS_SCALE = 0.08f; + private static final float PROGRESS_BOUNDS_SCALE = 0.075f; private static final int PRELOAD_ACCENT_COLOR_INDEX = 0; private static final int PRELOAD_BACKGROUND_COLOR_INDEX = 1;