diff options
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardFragment.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index 99adcccbd..5e00587b4 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -622,6 +622,8 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr } else { mCallStateLabel.startAnimation(mPulseAnimation); } + } else { + mCallStateLabel.clearAnimation(); } if (callStateIcon != null) { @@ -642,10 +644,7 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr ((AnimationDrawable) callStateIcon).start(); } } else { - Animation callStateIconAnimation = mCallStateIcon.getAnimation(); - if (callStateIconAnimation != null) { - callStateIconAnimation.cancel(); - } + mCallStateIcon.clearAnimation(); // Invoke setAlpha(float) instead of setAlpha(int) to set the view's alpha. This is // needed because the pulse animation operates on the view alpha. |