Skip to content
Browse files

Merge "Phone: IncomingCallWidget shows indefinitely sometimes."

  • Loading branch information...
2 parents 509868b + fc72fe3 commit a1e530fd2abb9c2e394dab466f404dc5f12f94fc Santos Cordon committed with Gerrit Code Review Jan 28, 2013
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 a1e530f

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