Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 106176e3 authored by Lucas Dupin's avatar Lucas Dupin Committed by Gerrit Code Review
Browse files

Merge "Add listener once for volume row animation"

parents e20d8b2c ac24e627
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1889,14 +1889,14 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
                if (row.anim == null) {
                    row.anim = ObjectAnimator.ofInt(row.slider, "progress", progress, newProgress);
                    row.anim.setInterpolator(new DecelerateInterpolator());
                    row.anim.addListener(
                        getJankListener(row.view, TYPE_UPDATE, UPDATE_ANIMATION_DURATION));
                } else {
                    row.anim.cancel();
                    row.anim.setIntValues(progress, newProgress);
                }
                row.animTargetProgress = newProgress;
                row.anim.setDuration(UPDATE_ANIMATION_DURATION);
                row.anim.addListener(
                        getJankListener(row.view, TYPE_UPDATE, UPDATE_ANIMATION_DURATION));
                row.anim.start();
            } else {
                // update slider directly to clamped value