Merge "Notify expanding state for QS expand method" into rvc-dev am: bad07bedb7

Change-Id: I562b2badc9d6c4c199516418c1a3be42a1f99923
This commit is contained in:
Beverly Tai
2020-04-16 23:31:33 +00:00
committed by Automerger Merge Worker
2 changed files with 7 additions and 1 deletions

View File

@@ -1779,8 +1779,14 @@ public class NotificationPanelViewController extends PanelViewController {
setQsExpansion((Float) animation.getAnimatedValue());
});
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) {

View File

@@ -157,7 +157,7 @@ public abstract class PanelViewController {
protected void onExpandingStarted() {
}
private void notifyExpandingStarted() {
protected void notifyExpandingStarted() {
if (!mExpanding) {
mExpanding = true;
onExpandingStarted();