summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-09-01 22:29:09 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-01 22:29:09 +0000
commitd9b158b71547178343bc7b8efb887b11c0db1789 (patch)
tree395c402a700d0a0e78520d92260709cc12c89a0a
parentc9b7283493f433968ba4cb68c99b0922dd8b9e9d (diff)
parenta8644bb995c4e0fabc07ffb8b2bf80a0dd448250 (diff)
Merge "DO NOT MERGE Make sure to clear PulseAnimation correctly in InCallActivity" into ub-contactsdialer-a-dev
-rw-r--r--InCallUI/src/com/android/incallui/CallCardFragment.java7
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.