summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorEvan Rosky <erosky@google.com>2017-11-20 23:04:46 +0000
committerEvan Rosky <erosky@google.com>2017-12-19 12:12:24 -0800
commit5db64eb1da42118af65ceba1d0612fd82c294608 (patch)
treea467a31aa4ac2cd2a1b34875c42a42519a94faf8 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentd87c6b51f55985e343cf96f57b06e4adebf53d25 (diff)
Don't allow 0-sized views to be focused.
These zero-sized views tend to make keyboard navigation difficult for users since focus "disappears" sometimes. This takes a best-effort approach for focus requested prior to layout: If a View hasn't been laid-out and is asked to take focus, it will act as though this size constraint doesn't exist. Then, upon layout, it will defocus itself if it still has no size. Bug: 32072305 Test: Added CTS View_FocusHandlingTest#testSizeHandling Change-Id: I82fee246bdf4964fe744142876da88ae79e491f0
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions