From 2e577d2e1c19c6fe9f22e0abbef9b35c6f627e27 Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Wed, 13 May 2015 07:15:17 -0700 Subject: Fix difficulty grabbing handles for small selections The gravity for the handles pushes them to the outside of the touch target square, causing the touch target to overlap for both of them when close together. This CL swaps the gravity so that the touch target does not overlap when the handles are close. Bug: 20065564 Change-Id: I4d14e7076ac779c5f4a0a603d6348ba6dc7c7b4c --- core/java/android/widget/Editor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java index 4fd85b6..84c2a4c 100644 --- a/core/java/android/widget/Editor.java +++ b/core/java/android/widget/Editor.java @@ -3934,7 +3934,7 @@ public class Editor { @Override protected int getHorizontalGravity(boolean isRtlRun) { - return isRtlRun ? Gravity.RIGHT : Gravity.LEFT; + return isRtlRun ? Gravity.LEFT : Gravity.RIGHT; } @Override @@ -4034,7 +4034,7 @@ public class Editor { @Override protected int getHorizontalGravity(boolean isRtlRun) { - return isRtlRun ? Gravity.LEFT : Gravity.RIGHT; + return isRtlRun ? Gravity.RIGHT : Gravity.LEFT; } @Override -- cgit v1.1