From 84c381b614feda2333df7858a550fb62148f3d41 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Thu, 6 Jul 2017 11:57:20 -0700 Subject: [PATCH] Color of the ring around the lock icon The color or the ring should match the color of the device theme, not only white. Test: visual Change-Id: Id4e40c71eb93b358d45b25894c6416e139920a6b Fixes: 63340494 --- .../src/com/android/systemui/statusbar/phone/TrustDrawable.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/TrustDrawable.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/TrustDrawable.java index d5a91bb7ff61..e8a456e9bf60 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/TrustDrawable.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/TrustDrawable.java @@ -31,6 +31,7 @@ import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.view.animation.Interpolator; +import com.android.settingslib.Utils; import com.android.systemui.Interpolators; import com.android.systemui.R; @@ -82,7 +83,7 @@ public class TrustDrawable extends Drawable { mPaint = new Paint(); mPaint.setStyle(Paint.Style.STROKE); - mPaint.setColor(Color.WHITE); + mPaint.setColor(Utils.getColorAttr(context, R.attr.bgProtectTextColor)); mPaint.setAntiAlias(true); mPaint.setStrokeWidth(mThickness); } -- 2.11.0