summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2015-05-13 07:15:17 -0700
committer Mady Mellor <madym@google.com> 2015-05-13 07:15:17 -0700
commit2e577d2e1c19c6fe9f22e0abbef9b35c6f627e27 (patch)
tree06e7cf66f7b447da8b0d7289aaef4a8092c24183
parentfb9a664b2bcb41844f1e00264ff5c5f18956a9fa (diff)
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
-rw-r--r--core/java/android/widget/Editor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java
index 4fd85b6ea953..84c2a4ce04e1 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