Fixed a bug where the overflow card appear animation would get stuck
Bug: 24547258 Change-Id: I50a9404c7b9cced0e2e1a2e39ffaaf0d8bf2dfb9
This commit is contained in:
@@ -608,8 +608,6 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
|
||||
onFinishedRunnable.run();
|
||||
}
|
||||
if (!mWasCancelled) {
|
||||
mAppearAnimationFraction = -1;
|
||||
setOutlineRect(null);
|
||||
enableAppearDrawing(false);
|
||||
}
|
||||
}
|
||||
@@ -630,6 +628,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
|
||||
private void cancelAppearAnimation() {
|
||||
if (mAppearAnimator != null) {
|
||||
mAppearAnimator.cancel();
|
||||
mAppearAnimator = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -735,6 +734,8 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
|
||||
mDrawingAppearAnimation = enable;
|
||||
if (!enable) {
|
||||
setContentAlpha(1.0f);
|
||||
mAppearAnimationFraction = -1;
|
||||
setOutlineRect(null);
|
||||
}
|
||||
invalidate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user