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

Commit 4fd9dae6 authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

NumberPicker should not play initial animation while in edit mode

bug:3417930

1. Added a check if the widget is in edit mode to determine if to
   play the initial annimation.

Change-Id: Ibcf23fa1ec55a1950323e71eda90da6418b655fb
parent 6f6ef48d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -583,7 +583,7 @@ public class NumberPicker extends LinearLayout {
        updateInputTextView();
        updateIncrementAndDecrementButtonsVisibilityState();

        if (mFlingable) {
        if (mFlingable && !isInEditMode()) {
            // Start with shown selector wheel and hidden controls. When made
            // visible hide the selector and fade-in the controls to suggest
            // fling interaction.
@@ -1056,7 +1056,7 @@ public class NumberPicker extends LinearLayout {
        super.onAttachedToWindow();
        // make sure we show the controls only the very
        // first time the user sees this widget
        if (mFlingable) {
        if (mFlingable && !isInEditMode()) {
            // animate a bit slower the very first time
            showInputControls(mShowInputControlsAnimimationDuration * 2);
        }