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:
Jim Miller
2012-05-16 17:56:59 -07:00
parent 824aa860cd
commit 5de47b6ad9

View File

@@ -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();