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

Commit 3f9d17fb authored by Alan Viverette's avatar Alan Viverette Committed by android-build-merger
Browse files

Merge "Cancel animation and jump to current state if not animating picker" into nyc-dev

am: d8c38b89

* commit 'd8c38b89':
  Cancel animation and jump to current state if not animating picker

Change-Id: Icdc36f4f5133b16a1b15d7cf58d1e0ef21fe9b7e
parents 3c90c6a4 d8c38b89
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -658,6 +658,13 @@ public class RadialTimePickerView extends View {

        if (animate) {
            animatePicker(hours, ANIM_DURATION_NORMAL);
        } else {
            // If we have a pending or running animator, cancel it.
            if (mHoursToMinutesAnimator != null && mHoursToMinutesAnimator.isStarted()) {
                mHoursToMinutesAnimator.cancel();
                mHoursToMinutesAnimator = null;
            }
            mHoursToMinutes = hours ? 0.0f : 1.0f;
        }

        initData();