From 8e130f08bea43f2c353e745bccb24086dbb89191 Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Thu, 20 Jul 2017 15:14:25 +0200 Subject: [PATCH] AOD: Hide owner info on ambient display Change-Id: Iea27b111b4025e2ad4b9cd0139f18f1653ca17dc Fixes: 63800919 Test: Set a dark wallpaper, set owner info; go to AOD, verify that owner info is not visible. --- .../SystemUI/src/com/android/keyguard/KeyguardStatusView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java index 820a77359cf28..a9d583f4f7018 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java @@ -333,6 +333,10 @@ public class KeyguardStatusView extends GridLayout { } child.setAlpha(dark ? 0 : 1); } + if (mOwnerInfo != null) { + mOwnerInfo.setAlpha(dark ? 0 : 1); + } + updateDozeVisibleViews(); mBatteryDoze.setDark(dark); mClockView.setTextColor(ColorUtils.blendARGB(mTextColor, Color.WHITE, darkAmount));