Prevent a feedback loop between an animation and the seekbar in the sample app
@@ -120,8 +120,10 @@ public class AnimationFragment extends Fragment {
seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
+ if (!animationView.isAnimating()) {
animationView.setProgress(progress / 100f);
}
+ }
@Override public void onStartTrackingTouch(SeekBar seekBar) {
}
