From 7cdffebe5152302ec9ab57f0c910432f78e32841 Mon Sep 17 00:00:00 2001 From: Mike Digman Date: Fri, 16 Mar 2018 13:47:38 -0700 Subject: [PATCH] Fix KeyButtonDrawable dark intensity logic error The implication of this logic error was that tinting always appeared unset, so rotate logic never applied the current tint to recreated TintedKeyButtonDrawables. Change-Id: Id499b82163b28d341794e2cdee50c2be184d2be7 Fixes: 75297451 Test: manual --- .../systemui/statusbar/policy/TintedKeyButtonDrawable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/TintedKeyButtonDrawable.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/TintedKeyButtonDrawable.java index 56f6726fae5be..0616ffc295ab8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/TintedKeyButtonDrawable.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/TintedKeyButtonDrawable.java @@ -63,7 +63,7 @@ public class TintedKeyButtonDrawable extends KeyButtonDrawable { } public boolean isDarkIntensitySet() { - return mDarkIntensity == DARK_INTENSITY_NOT_SET; + return mDarkIntensity != DARK_INTENSITY_NOT_SET; } public float getDarkIntensity() {