summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2019-07-26 21:47:19 -0700
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-07-30 00:38:42 +0000
commit67dd6142d71ba8d6c5eb8228b964a01e0743bef9 (patch)
treedd8b014a9486f2a420c2abf4f99edd3c74ba0a70
parent65dd52bb2b40b61f2b98cb9e2479c95df3b5a12c (diff)
downloadbase-67dd6142d71ba8d6c5eb8228b964a01e0743bef9.tar.gz
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 (cherry picked from commit 7c236e9ca79ac7ea50449f77709bbc1f5dcd4b79)
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/ActivityLaunchAnimator.java1
1 files changed, 1 insertions, 0 deletions
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 0d9f4e7b909d..91d47077fc31 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;
}