OSDN Git Service

Fix KeyButtonDrawable dark intensity logic error
authorMike Digman <digman@google.com>
Fri, 16 Mar 2018 20:47:38 +0000 (13:47 -0700)
committerMike Digman <digman@google.com>
Fri, 16 Mar 2018 21:17:34 +0000 (14:17 -0700)
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

packages/SystemUI/src/com/android/systemui/statusbar/policy/TintedKeyButtonDrawable.java

index 56f6726..0616ffc 100644 (file)
@@ -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() {