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
This commit is contained in:
Selim Cinek
2019-07-26 21:47:19 -07:00
parent bde6a92a55
commit 7c236e9ca7

View File

@@ -153,6 +153,7 @@ public class ActivityLaunchAnimator {
if (primary == null) {
setAnimationPending(false);
invokeCallback(iRemoteAnimationFinishedCallback);
mNotificationPanel.collapse(false /* delayed */, 1.0f /* speedUpFactor */);
return;
}