Merge "Notify expanding state for QS expand method" into rvc-dev
This commit is contained in:
@@ -1779,8 +1779,14 @@ public class NotificationPanelViewController extends PanelViewController {
|
|||||||
setQsExpansion((Float) animation.getAnimatedValue());
|
setQsExpansion((Float) animation.getAnimatedValue());
|
||||||
});
|
});
|
||||||
animator.addListener(new AnimatorListenerAdapter() {
|
animator.addListener(new AnimatorListenerAdapter() {
|
||||||
|
@Override
|
||||||
|
public void onAnimationStart(Animator animation) {
|
||||||
|
notifyExpandingStarted();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAnimationEnd(Animator animation) {
|
public void onAnimationEnd(Animator animation) {
|
||||||
|
notifyExpandingFinished();
|
||||||
mNotificationStackScroller.resetCheckSnoozeLeavebehind();
|
mNotificationStackScroller.resetCheckSnoozeLeavebehind();
|
||||||
mQsExpansionAnimator = null;
|
mQsExpansionAnimator = null;
|
||||||
if (onFinishRunnable != null) {
|
if (onFinishRunnable != null) {
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ public abstract class PanelViewController {
|
|||||||
protected void onExpandingStarted() {
|
protected void onExpandingStarted() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void notifyExpandingStarted() {
|
protected void notifyExpandingStarted() {
|
||||||
if (!mExpanding) {
|
if (!mExpanding) {
|
||||||
mExpanding = true;
|
mExpanding = true;
|
||||||
onExpandingStarted();
|
onExpandingStarted();
|
||||||
|
|||||||
Reference in New Issue
Block a user