From 63d72170dac995d2d22d454fead656daf26c1088 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Wed, 6 Jun 2018 11:42:55 -0700 Subject: Update scrims when keyguard gets occluded We were assuming that a show_when_locked window would always be on the lock screen when the device sleeps, but its possible that, when charging, a window may come visible after the device enters doze. Ideally this should be handled in window manager but not feasible in P. Change-Id: I8a1b5e638a8e84bbea3a91fc4ac94feb6195390e Fixes: 80647623 Test: manual with app from play store Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java --- .../src/com/android/systemui/statusbar/phone/ScrimController.java | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/SystemUI/src') diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java index 9ba0880b3748..279ede914fa7 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java @@ -896,6 +896,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo public void setKeyguardOccluded(boolean keyguardOccluded) { mKeyguardOccluded = keyguardOccluded; + updateScrims(); } public interface Callback { -- cgit v1.2.3-59-g8ed1b