From 12e112ddc33888cccbbe1858dbd0dc230376f4c7 Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Tue, 25 Jul 2017 16:46:23 +0200 Subject: [PATCH] AOD: Show keyguard indications in white Fixes an issue where colored keyguard indications were hard to read on AOD. Change-Id: I6bbb6267278a7397327f1fc4d88304d83f5f1ff1 Fixes: 63686192 Test: Set up fingerprint; go to AOD; tap wrong finger; verify message is shown in white --- .../systemui/statusbar/KeyguardIndicationController.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java index 25ef478fc6302..74737c4c29481 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java @@ -280,13 +280,10 @@ public class KeyguardIndicationController { if (mDozing) { // If we're dozing, never show a persistent indication. if (!TextUtils.isEmpty(mTransientIndication)) { - // When dozing we ignore the initial text color and use white instead. - // We don't wait to draw black text on a black background. - int color = mTransientTextColor == mInitialTextColor ? - Color.WHITE : mTransientTextColor; + // When dozing we ignore any text color and use white instead, because + // colors can be hard to read in low brightness. + mTextView.setTextColor(Color.WHITE); mTextView.switchIndication(mTransientIndication); - mTextView.setTextColor(color); - } else { mTextView.switchIndication(null); }