From 8957ededf1f7d4fb39f06f1fe7f2d4bdda0790ba Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Wed, 22 May 2019 12:16:10 -0400 Subject: [PATCH] Fix StatusBarMobileView to use correct shade As SignalDrawable now uses a single color to draw, it should get DualToneHandler#getSingleColor passed to it. Test: manual on QS Header and launcher (white background). The shade of gray matches the other icons. Fixes: 133258347 Change-Id: Id9e324623d0e82753b1a31a7908df9399e75c827 --- .../com/android/systemui/statusbar/StatusBarMobileView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarMobileView.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarMobileView.java index 812c9a7e9b8a7..689d161c2ee86 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarMobileView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarMobileView.java @@ -212,7 +212,7 @@ public class StatusBarMobileView extends FrameLayout implements DarkReceiver, return; } mMobileDrawable.setTintList( - ColorStateList.valueOf(mDualToneHandler.getFillColor(darkIntensity))); + ColorStateList.valueOf(mDualToneHandler.getSingleColor(darkIntensity))); ColorStateList color = ColorStateList.valueOf(getTint(area, this, tint)); mIn.setImageTintList(color); mOut.setImageTintList(color); @@ -238,7 +238,7 @@ public class StatusBarMobileView extends FrameLayout implements DarkReceiver, // We want the ability to change the theme from the one set by SignalDrawable in certain // surfaces. In this way, we can pass a theme to the view. mMobileDrawable.setTintList( - ColorStateList.valueOf(mDualToneHandler.getFillColor(intensity))); + ColorStateList.valueOf(mDualToneHandler.getSingleColor(intensity))); mIn.setImageTintList(list); mOut.setImageTintList(list); mMobileType.setImageTintList(list);