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

Commit 12209b9a authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Only look for nearest child View in ViewGroup"

parents 95e6ad7b 7add7e04
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -880,8 +880,12 @@ class TimePickerClockDelegate extends TimePicker.AbstractTimePickerDelegate impl
            public boolean onTouch(View view, MotionEvent motionEvent) {
                final int actionMasked = motionEvent.getActionMasked();
                if (actionMasked == MotionEvent.ACTION_DOWN) {
                    if (view instanceof ViewGroup) {
                        mInitialTouchTarget = findNearestChild((ViewGroup) view,
                                (int) motionEvent.getX(), (int) motionEvent.getY());
                    } else {
                        mInitialTouchTarget = null;
                    }
                }

                final View child = mInitialTouchTarget;