Skip to content

Commit 5de47b6

Browse files
author
Jim Miller
committed
Fix 6398209: Fix glitch in chevron animation in MultiWaveView
This fixes a glitch caused by clearing the array of chevrons before stopping the associated animations. The old animations were allowed to complete which caused chevrons to move around erratically because they were being controlled by multiple animators. Change-Id: Iec1450dd83077a721930eb3cac19a621e7356980
1 parent 824aa86 commit 5de47b6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,8 @@ private void switchToState(int state, float x, float y) {
376376
private void startChevronAnimation() {
377377
final float chevronStartDistance = mHandleDrawable.getWidth() * 0.8f;
378378
final float chevronStopDistance = mOuterRadius * 0.9f / 2.0f;
379-
mChevronAnimations.clear();
380379
final float startScale = 0.5f;
381380
final float endScale = 2.0f;
382-
383381
final int directionCount = mFeedbackCount > 0 ? mChevronDrawables.size()/mFeedbackCount : 0;
384382

385383
mChevronAnimations.stop();

0 commit comments

Comments
 (0)