summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMihai Popa <popam@google.com>2018-03-27 14:43:08 +0100
committerMihai Popa <popam@google.com>2018-04-01 18:59:37 +0000
commit6e44808890cac7809555b9ff63ff8e88e644b562 (patch)
tree61d7f4b0d6da261182d880552db3924398a06ab9 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent9009654c1d7df28b1586c9eedea6a3526519ec13 (diff)
[Magnifier-36] Fix content clamping inside view
We try to never display in the magnifier content that does not belong to the magnified view. If the magnified view has one or more scrollable containers, these have to be considered in order to find out the visible portion of the view which is not masked by scrollable containers. The previous logic for computing the visible region was wrong when one of the containers was a ViewPager, whose getScrollX() returns the scroll relative to all pages, rather than the currently visible one as the logic was expecting. This CL replaces the old logic with a View#getGlobalVisibleRect(). Bug: 74359490 Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest Change-Id: Ib6b63a35436aa691f29c13a0789688f23bfca9f1
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions