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
This commit is contained in:
@@ -376,10 +376,8 @@ public class MultiWaveView extends View {
|
||||
private void startChevronAnimation() {
|
||||
final float chevronStartDistance = mHandleDrawable.getWidth() * 0.8f;
|
||||
final float chevronStopDistance = mOuterRadius * 0.9f / 2.0f;
|
||||
mChevronAnimations.clear();
|
||||
final float startScale = 0.5f;
|
||||
final float endScale = 2.0f;
|
||||
|
||||
final int directionCount = mFeedbackCount > 0 ? mChevronDrawables.size()/mFeedbackCount : 0;
|
||||
|
||||
mChevronAnimations.stop();
|
||||
|
||||
Reference in New Issue
Block a user