Adrian Roos
7c7898e74f
GestureNav: Fix AbsSeekBar thumb exclusion
...
Fix two issues that caused the exclusion for SeekBar thumbs to be to small and offset
from the thumb:
Account for padding and thumb offset; the thumb drawable is drawn with an offset
from the View's Canvas; the same offset must be applied when udpating the exclusion
rects.
The thumb is typically much smaller than the drag zone; the thumb rect alone doesn't
provide an appropriately large exclusion for reliably hitting it, so it is enlarged
to the height of the seek bar (up to 48dp).
Bug: 138992366
Test: manual, show exclusion zones with: adb shell setprop debug.pointerlocation.showexclusion 150 && adb shell settings put system pointer_location 1
Test: atest android.widget.AbsSeekBarTest
Change-Id: I2b670c6f3f33451bdccdfd3d75a75e90260257ff
2019-08-07 15:09:26 +02:00
..
2019-06-11 18:58:21 -07:00
2019-03-04 16:46:15 -05:00
2019-08-07 15:09:26 +02:00
2019-02-28 23:29:04 -07:00
2019-02-28 23:29:04 -07:00
2018-08-21 16:08:34 +01:00
2018-08-21 16:08:34 +01:00
2019-02-07 16:46:38 -08:00
2019-05-16 16:05:51 -07:00
2019-02-28 23:29:04 -07:00
2019-02-07 16:46:38 -08:00
2019-02-07 16:46:38 -08:00
2018-11-15 09:50:16 -08:00
2019-07-18 20:42:25 +00:00
2019-03-12 16:22:59 -07:00
2018-08-21 16:08:34 +01:00
2019-02-07 16:46:38 -08:00
2019-04-17 21:11:39 +00:00
2019-02-07 16:46:38 -08:00
2019-04-17 21:11:39 +00:00
2019-02-14 09:48:06 -08:00
2019-03-18 16:05:55 -04:00
2018-09-17 16:47:08 -07:00
2019-02-04 19:11:56 -05:00
2019-02-07 16:46:38 -08:00
2018-09-17 09:38:14 -04:00
2019-02-06 14:15:13 -08:00
2019-06-10 20:24:20 +00:00
2019-02-28 23:29:04 -07:00
2019-02-28 23:29:04 -07:00
2018-08-21 16:08:34 +01:00
2018-08-21 16:08:34 +01:00
2019-03-04 16:46:15 -05:00
2019-02-07 16:46:38 -08:00
2019-03-18 16:05:55 -04:00
2019-03-18 16:05:55 -04:00
2018-08-21 16:08:34 +01:00
2019-02-28 23:29:04 -07:00
2019-04-17 21:11:39 +00:00
2019-03-18 16:05:55 -04:00
2019-03-12 17:12:44 +00:00
2019-02-27 01:50:49 +00:00
2019-06-17 11:59:20 +00:00
2018-12-28 14:26:35 +00:00
2019-03-11 14:10:44 +00:00
2018-08-21 16:08:34 +01:00
2018-08-23 14:53:16 -07:00
2019-02-05 17:20:21 +00:00
2019-05-12 19:46:31 +00:00
2019-04-17 21:11:39 +00:00
2018-08-21 16:08:34 +01:00
2019-02-07 16:46:38 -08:00
2019-02-07 16:46:38 -08:00
2019-02-07 16:46:38 -08:00
2019-07-18 21:44:50 +00:00
2019-06-28 10:15:37 +01:00
2019-06-06 17:02:55 -07:00
2018-12-04 02:33:53 -08:00
2018-12-04 02:33:53 -08:00
2019-02-12 14:31:49 -08:00
2018-08-21 16:08:34 +01:00
2019-03-01 16:18:21 -08:00
2019-02-28 23:29:04 -07:00
2018-08-21 16:08:34 +01:00
2019-04-16 13:22:25 +01:00
2018-09-17 15:17:50 -07:00
2018-12-28 14:26:35 +00:00
2018-12-28 14:26:35 +00:00
2019-02-07 16:46:38 -08:00
2019-01-19 11:49:37 -08:00
2019-02-28 23:29:04 -07:00
2019-02-07 16:46:38 -08:00
2019-04-17 21:11:39 +00:00
2019-02-07 16:46:38 -08:00
2019-03-04 16:46:15 -05:00
2019-07-18 12:50:31 -07:00
2019-03-20 15:39:23 -07:00
2019-05-20 11:29:45 -07:00
2019-06-08 00:56:43 +00:00
2019-03-18 16:05:55 -04:00
2019-01-09 06:39:18 -08:00
2018-09-17 16:47:08 -07:00
2019-02-15 21:15:51 +00:00
2019-02-28 18:41:26 -05:00
2019-02-28 23:29:04 -07:00
2019-02-07 16:46:38 -08:00
2018-12-28 14:26:35 +00:00
2019-02-04 19:11:56 -05:00
2019-02-28 18:41:26 -05:00
2019-02-27 16:52:33 -08:00