Skip to content

Commit 2a7b17b

Browse files
author
Jim Miller
committed
Fix 6580421: make sure MultiWaveView.reset() makes handle visible
This fixes a bug where sometimes the handle wasn't visble in the incoming call screen. The problem was that the animation was interrupted on its transition from alpha = 0 to alpha = 1 by reset() and the new handle animation wasn't started. Change-Id: I3ab4259db1115da20e7f54b91bbfe3b496940214
1 parent dda62f6 commit 2a7b17b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/com/android/internal/widget/multiwaveview/MultiWaveView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ private void deactivateHandle(int duration, int delay, float finalAlpha,
419419
"y", 0,
420420
"onUpdate", mUpdateListener,
421421
"onComplete", finishListener));
422+
mHandleAnimations.start();
422423
}
423424

424425
/**
@@ -528,7 +529,6 @@ private void doFinish() {
528529
deactivateHandle(HIDE_ANIMATION_DURATION, HIDE_ANIMATION_DELAY, 1.0f,
529530
mResetListenerWithPing);
530531
hideTargets(true, false);
531-
mHandleAnimations.start();
532532
}
533533

534534
setGrabbedState(OnTriggerListener.NO_HANDLE);

0 commit comments

Comments
 (0)