summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorMihai Popa <popam@google.com>2018-04-05 12:01:53 +0100
committerMihai Popa <popam@google.com>2018-04-06 10:47:38 +0100
commit63ee7f1610025fa14d8e6e2f1049823ba37f8c53 (patch)
tree68c213e8c52b77a5f0e90bf8e5548bc09fe56ea9 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent74519453645018daf7180eaf273283c801cd2633 (diff)
[Magnifier-39] Hide both handles on overlap
In general, since text insertion/selection handles are implemented as PopupWindows, if they get to overlap the magnifier they are going to be rendered above it. Therefore, we are trying to avoid this case. Before this CL, we were only hiding the grabbed handle, when this would overlap the magnifier. Since the magnifier would usually be displayed a certain offset above the grabbed handle, this could only possibly happen when there was not enough space for the magnifier above in the current surface. However, this is not enough, as in the case of selection, the other handle could as well overlap the magnifier in certain cases. This CL intersects the magnifier rectangle with the rectangles of both handles and detects whether these should hidden or not. Bug: 76459199 Test: atest FrameworksCoreTests:android.widget.TextViewActivityTest Test: atest FrameworksCoreTests:android.widget.TextViewTest Change-Id: I22519979eead276dbcf273f7c1a54d654fa251bc
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions