From 674b8eaff3576cf46e4d2d2152ae99e60e12fe64 Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Thu, 25 May 2017 12:33:17 -0700 Subject: [PATCH] AOD: Fix camera icon visibility Fixes a bug where the camera icon could become visible in AOD even though it should not. Fixes: 62038727 Test: Trigger ambient display, uninstall button provider plugin, observe camera button does not show Change-Id: Ie97085dff58b6ecd0157126e30b86138f585d454 --- .../systemui/statusbar/phone/KeyguardBottomAreaView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java index 41a60e24e7005..6fe8827c4c878 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java @@ -330,7 +330,7 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL private void updateRightAffordanceIcon() { IconState state = mRightButton.getIcon(); - mRightAffordanceView.setVisibility(state.isVisible ? View.VISIBLE : View.GONE); + mRightAffordanceView.setVisibility(!mDozing && state.isVisible ? View.VISIBLE : View.GONE); mRightAffordanceView.setImageDrawable(state.drawable, state.tint); mRightAffordanceView.setContentDescription(state.contentDescription); }