From eb0e2f28325603fef786449e69ce4a46090b967a Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Mon, 7 Jun 2021 15:10:01 -0700 Subject: [PATCH] Remove stroke from UDFPS enroll icon Bug: 187460696 Test: manual Change-Id: I95f2f13d2ad7c8b74c692d854e8bc187aae5c9b9 --- packages/SystemUI/res/values/colors.xml | 1 - .../android/systemui/biometrics/UdfpsEnrollDrawable.java | 9 --------- 2 files changed, 10 deletions(-) diff --git a/packages/SystemUI/res/values/colors.xml b/packages/SystemUI/res/values/colors.xml index 1f6a94d254b78..f64299dcd4c4c 100644 --- a/packages/SystemUI/res/values/colors.xml +++ b/packages/SystemUI/res/values/colors.xml @@ -187,7 +187,6 @@ #000000 #cc4285f4 - #ff669DF6 #ff669DF6 diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsEnrollDrawable.java b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsEnrollDrawable.java index 4c2ed3d228c01..ea69b1d626ae9 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsEnrollDrawable.java +++ b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsEnrollDrawable.java @@ -47,7 +47,6 @@ public class UdfpsEnrollDrawable extends UdfpsDrawable { @NonNull private final Drawable mMovingTargetFpIcon; @NonNull private final Paint mSensorOutlinePaint; @NonNull private final Paint mBlueFill; - @NonNull private final Paint mBlueStroke; @Nullable private RectF mSensorRect; @Nullable private UdfpsEnrollHelper mEnrollHelper; @@ -76,12 +75,6 @@ public class UdfpsEnrollDrawable extends UdfpsDrawable { mBlueFill.setColor(context.getColor(R.color.udfps_moving_target_fill)); mBlueFill.setStyle(Paint.Style.FILL); - mBlueStroke = new Paint(0 /* flags */); - mBlueStroke.setAntiAlias(true); - mBlueStroke.setColor(context.getColor(R.color.udfps_moving_target_stroke)); - mBlueStroke.setStyle(Paint.Style.STROKE); - mBlueStroke.setStrokeWidth(12); - mMovingTargetFpIcon = context.getResources().getDrawable(R.drawable.ic_fingerprint, null); mMovingTargetFpIcon.setTint(Color.WHITE); mMovingTargetFpIcon.mutate(); @@ -167,7 +160,6 @@ public class UdfpsEnrollDrawable extends UdfpsDrawable { canvas.scale(mCurrentScale, mCurrentScale, mSensorRect.centerX(), mSensorRect.centerY()); canvas.drawOval(mSensorRect, mBlueFill); - canvas.drawOval(mSensorRect, mBlueStroke); } mMovingTargetFpIcon.draw(canvas); @@ -192,7 +184,6 @@ public class UdfpsEnrollDrawable extends UdfpsDrawable { super.setAlpha(alpha); mSensorOutlinePaint.setAlpha(alpha); mBlueFill.setAlpha(alpha); - mBlueStroke.setAlpha(alpha); mMovingTargetFpIcon.setAlpha(alpha); invalidateSelf(); }