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

Commit 092bda57 authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

NubmberPicker up/down arrows do not work.

bug:3490963

This is a bug I have introduced while fixing bug:3452868.

Change-Id: Ib2ee39d0c790d60d30bc10051d69f393672a006c
parent fd887614
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -608,7 +608,7 @@ public class NumberPicker extends LinearLayout {
            case MotionEvent.ACTION_DOWN:
                mLastMotionEventY = mLastDownEventY = event.getY();
                removeAllCallbacks();
                hideInputControls();
                mShowInputControlsAnimator.cancel();
                mBeginEditOnUpEvent = false;
                mAdjustScrollerOnUpEvent = true;
                if (mDrawSelectorWheel) {
@@ -621,6 +621,7 @@ public class NumberPicker extends LinearLayout {
                    }
                    mBeginEditOnUpEvent = scrollersFinished;
                    mAdjustScrollerOnUpEvent = true;
                    hideInputControls();
                    return true;
                }
                if (isEventInViewHitRect(event, mInputText)
@@ -630,6 +631,7 @@ public class NumberPicker extends LinearLayout {
                                && isEventInViewHitRect(event, mDecrementButton))) {
                    mAdjustScrollerOnUpEvent = false;
                    setDrawSelectorWheel(true);
                    hideInputControls();
                    return true;
                }
                break;
@@ -640,6 +642,7 @@ public class NumberPicker extends LinearLayout {
                    mBeginEditOnUpEvent = false;
                    onScrollStateChange(OnScrollListener.SCROLL_STATE_TOUCH_SCROLL);
                    setDrawSelectorWheel(true);
                    hideInputControls();
                    return true;
                }
                break;