summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2018-03-22 23:45:13 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-03-22 23:45:13 +0000
commit6ece0f3f62c33199b52a3ebb0ab90bf3fc96f966 (patch)
treed6d26c7b9d6bdded14125fa444decf5fe2c414c2
parentd9bd20b0dcc0def2aa759e8694ada65fbbddd41e (diff)
parenta303a64a799790f580194f0bcb7b471e101d49bd (diff)
Merge "Ensuring that headsups go away when unpinning via active edge" into pi-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
index 6852df65918c..3d2d142a3900 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -2360,6 +2360,14 @@ public class NotificationPanelView extends PanelView implements
@Override
public void onHeadsUpUnPinned(ExpandableNotificationRow headsUp) {
+
+ // When we're unpinning the notification via active edge they remain heads-upped,
+ // we need to make sure that an animation happens in this case, otherwise the notification
+ // will stick to the top without any interaction.
+ if (isFullyCollapsed() && headsUp.isHeadsUp()) {
+ mNotificationStackScroller.generateHeadsUpAnimation(headsUp, false);
+ headsUp.setHeadsUpIsVisible();
+ }
}
@Override