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
This commit is contained in:
Selim Cinek
2017-03-15 16:19:10 -07:00
parent 9281e5e1c4
commit 2f6272ec7d

View File

@@ -1160,7 +1160,8 @@ public class KeyguardViewMediator extends SystemUI {
if (mOccluded != isOccluded) {
mOccluded = isOccluded;
mStatusBarKeyguardViewManager.setOccluded(isOccluded, animate);
mStatusBarKeyguardViewManager.setOccluded(isOccluded, animate
&& mDeviceInteractive);
adjustStatusBarLocked();
}
}