summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJake Wharton <jakewharton@gmail.com>2012-04-23 22:02:32 -0700
committerJake Wharton <jakewharton@gmail.com>2012-04-23 22:02:32 -0700
commit0e567987d7883aa8997ac30c793aa6d5cd1aabbb (patch)
treea599c3096b6a7887e5d87ae005ef9c0c66bc641e /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent3c40675f6f473896b93ca6416d29192d88e92622 (diff)
Do not dispatch context selection events to non-visible fragments.
When used in a `ViewPager`, fragments that are present on the adjacent, cached pages will receive context selection dispatches which, depending on your fragment contents, can be difficult to determine whether or not the event truly originated from your view. By using the visible hint we restrict dispatching to only those fragments which are marked as being visible. Since the fragment pager adapter updates this setting properly most implementations will be afforded this fix without any change required. If the user is implementing their own adapter they likely already understand the implications of these cached fragments and the reponsibility for updating the boolean falls to them. Mirrors support library change Ie6a72c1c82c2784774373670007b6f5948fe16da Change-Id: I1bc6f74e26660ef4a3c20419c077e37992412e94
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions