From 7c236e9ca79ac7ea50449f77709bbc1f5dcd4b79 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Fri, 26 Jul 2019 21:47:19 -0700 Subject: [PATCH] Fixed an issue where the notification wouldn't collapse When clicking on a notification with an activity that wouldn't start an opening animation, the panel could remain open. We're now closing it in that case. Fixes: 138468703 Test: follow test on bug and observe normal closing Change-Id: I0b867302d616c017d82f944ee983d4ba4356701a --- .../systemui/statusbar/notification/ActivityLaunchAnimator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/ActivityLaunchAnimator.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/ActivityLaunchAnimator.java index 0d9f4e7b909d4..91d47077fc312 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/ActivityLaunchAnimator.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/ActivityLaunchAnimator.java @@ -153,6 +153,7 @@ public class ActivityLaunchAnimator { if (primary == null) { setAnimationPending(false); invokeCallback(iRemoteAnimationFinishedCallback); + mNotificationPanel.collapse(false /* delayed */, 1.0f /* speedUpFactor */); return; }