Remove stroke from UDFPS enroll icon
Bug: 187460696 Test: manual Change-Id: I95f2f13d2ad7c8b74c692d854e8bc187aae5c9b9
This commit is contained in:
@@ -187,7 +187,6 @@
|
||||
<!-- UDFPS colors -->
|
||||
<color name="udfps_enroll_icon">#000000</color> <!-- 100% black -->
|
||||
<color name="udfps_moving_target_fill">#cc4285f4</color> <!-- 80% blue -->
|
||||
<color name="udfps_moving_target_stroke">#ff669DF6</color> <!-- 100% blue -->
|
||||
<color name="udfps_enroll_progress">#ff669DF6</color> <!-- 100% blue -->
|
||||
|
||||
<!-- Logout button -->
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user