diff options
| author | 2020-04-16 15:22:01 -0400 | |
|---|---|---|
| committer | 2020-04-16 15:22:01 -0400 | |
| commit | f45aa98ea1b19e5c1241cfac9733bf3dedca9f87 (patch) | |
| tree | 81ea46f3b773bd3ff7b7bfbf9f70a1429116686e | |
| parent | 9b6af1dcc58723b86988ac42993af0b07416a2ee (diff) | |
Notify expanding state for QS expand method
To alert the NotificationStackScroller of QS expansion so it can animate
appropriately
Test: manual
Fixes: 141655677
Change-Id: I78c8704d7fd2ed6bdc824d3021d2c91c1e049733
2 files changed, 7 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java index 31797d1faa61..c9716d39590e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java @@ -1780,7 +1780,13 @@ public class NotificationPanelViewController extends PanelViewController { }); animator.addListener(new AnimatorListenerAdapter() { @Override + public void onAnimationStart(Animator animation) { + notifyExpandingStarted(); + } + + @Override public void onAnimationEnd(Animator animation) { + notifyExpandingFinished(); mNotificationStackScroller.resetCheckSnoozeLeavebehind(); mQsExpansionAnimator = null; if (onFinishRunnable != null) { diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java index f7d403f667cb..81dc9e1cf0e2 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java @@ -157,7 +157,7 @@ public abstract class PanelViewController { protected void onExpandingStarted() { } - private void notifyExpandingStarted() { + protected void notifyExpandingStarted() { if (!mExpanding) { mExpanding = true; onExpandingStarted(); |