From 2f6272ec7dfae348e2f4352ae7cae822a24b7eb6 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Wed, 15 Mar 2017 16:19:10 -0700 Subject: [PATCH] Fixed a bug where the notifications could get stuck animating Notifications could get stuck in the middle of an animation when the occlusion changed. Test: launch camera, turn screen off, observe no animation when waking up Change-Id: I414b9a5f7b01db2f4e2a3198647084f5e2582e8b Fixes: 34734460 --- .../com/android/systemui/keyguard/KeyguardViewMediator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java index cbe822f2205dc..a549c73c6527c 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -1160,7 +1160,8 @@ public class KeyguardViewMediator extends SystemUI { if (mOccluded != isOccluded) { mOccluded = isOccluded; - mStatusBarKeyguardViewManager.setOccluded(isOccluded, animate); + mStatusBarKeyguardViewManager.setOccluded(isOccluded, animate + && mDeviceInteractive); adjustStatusBarLocked(); } }