Skip to content
Browse files

am a1e530f: Merge "Phone: IncomingCallWidget shows indefinitely somet…

…imes."

# By Bin Li
# Via Bin Li (1) and Gerrit Code Review (1)
* commit 'a1e530fd2abb9c2e394dab466f404dc5f12f94fc':
  Phone: IncomingCallWidget shows indefinitely sometimes.
  • Loading branch information...
2 parents ac6babd + a1e530f commit 51f3ef904aa6f8de4a8030666f90ff2290e1f7e8 Santos Cordon committed with Android Git Automerger
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/com/android/phone/InCallTouchUi.java
View
4 src/com/android/phone/InCallTouchUi.java
@@ -1164,6 +1164,10 @@ private void showIncomingCallWidget(Call ringingCall) {
ViewPropertyAnimator animator = mIncomingCallWidget.animate();
if (animator != null) {
animator.cancel();
+ // If animation is cancelled before it's running,
+ // onAnimationCancel will not be called and mIncomingCallWidgetIsFadingOut
+ // will be alway true. hideIncomingCallWidget() will not be excuted in this case.
+ mIncomingCallWidgetIsFadingOut = false;
}
mIncomingCallWidget.setAlpha(1.0f);

0 comments on commit 51f3ef9

Please sign in to comment.
Something went wrong with that request. Please try again.