Skip to content

Commit f5124e3

Browse files
author
George Mount
committed
Move the selection handles vertically to match TextView.
Bug 6185758 Change-Id: I4165f216b5e02cab5b19f10666f28abbb956de03
1 parent ddc421d commit f5124e3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/java/android/webkit/WebViewClassic.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4909,11 +4909,9 @@ private void drawTextSelectionHandles(Canvas canvas) {
49094909
*/
49104910
private void getSelectionHandles(int[] handles) {
49114911
handles[0] = mSelectCursorBase.right;
4912-
handles[1] = mSelectCursorBase.bottom -
4913-
(mSelectCursorBase.height() / 4);
4912+
handles[1] = mSelectCursorBase.bottom;
49144913
handles[2] = mSelectCursorExtent.left;
4915-
handles[3] = mSelectCursorExtent.bottom
4916-
- (mSelectCursorExtent.height() / 4);
4914+
handles[3] = mSelectCursorExtent.bottom;
49174915
if (!nativeIsBaseFirst(mNativeClass)) {
49184916
int swap = handles[0];
49194917
handles[0] = handles[2];

0 commit comments

Comments
 (0)