commit | 839697006511afa61ecd07747523180b513b9b70 | [log] [tgz] |
---|---|---|
author | Jorim Jaggi <jjaggi@google.com> | Fri Jun 05 14:59:24 2015 -0700 |
committer | Jorim Jaggi <jjaggi@google.com> | Tue Jun 09 00:02:55 2015 +0000 |
tree | 9293ba654019692abf1fb6e058a38cd5e79a4258 | |
parent | 196597b7c09fce62276099292bb0e3d0572fe4a5 [diff] [blame] |
Only doze when not occluded This fixes a bug where an activity could have been started on top of the lockscreen while dozing already. In that case, we would execute a pulse and reveal the fully colored activity that is occluding the Keyguard Bug: 19465785 Change-Id: I9533390e13f11424a20a107005d60050a460e333
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index 39dc480..8c2c543 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -2112,7 +2112,9 @@ public void setDozing(boolean dozing, boolean animate) { if (dozing == mDozing) return; mDozing = dozing; - updateDozingVisibilities(animate); + if (mStatusBarState == StatusBarState.KEYGUARD) { + updateDozingVisibilities(animate); + } } private void updateDozingVisibilities(boolean animate) {