summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2019-08-06 16:43:31 +0200
committerAdrian Roos <roosa@google.com>2019-08-07 15:09:26 +0200
commit7c7898e74f077455864891b869d5ddd62e99e5ef (patch)
treefc0de049864f319e6d6455a2b55b35d3b5ed12d4 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent33c07d1c382b7e4a61fb48ce981944b255bfdbb5 (diff)
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions