Fixed a bug where the overflow card appear animation would get stuck

Bug: 24547258
Change-Id: I50a9404c7b9cced0e2e1a2e39ffaaf0d8bf2dfb9
This commit is contained in:
Selim Cinek
2015-12-28 12:48:15 +01:00
parent f567c9849a
commit b65c6dbb2c

View File

@@ -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();
}