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

Commit a009ee22 authored by Justin Mattson's avatar Justin Mattson Committed by Android (Google) Code Review
Browse files

Merge "Reverse movement direction of DPAD events" into jb-mr1-aah-dev

parents 6594eca0 86cf0cdf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -948,13 +948,13 @@ public class NumberPicker extends LinearLayout {
                }
                switch (event.getAction()) {
                    case KeyEvent.ACTION_DOWN:
                        if (mWrapSelectorWheel || (keyCode == KeyEvent.KEYCODE_DPAD_UP)
                        if (mWrapSelectorWheel || (keyCode == KeyEvent.KEYCODE_DPAD_DOWN)
                                ? getValue() < getMaxValue() : getValue() > getMinValue()) {
                            requestFocus();
                            mLastHandledDownDpadKeyCode = keyCode;
                            removeAllCallbacks();
                            if (mFlingScroller.isFinished()) {
                                changeValueByOne(keyCode == KeyEvent.KEYCODE_DPAD_UP);
                                changeValueByOne(keyCode == KeyEvent.KEYCODE_DPAD_DOWN);
                            }
                            return true;
                        }