diff options
author | Mady Mellor <madym@google.com> | 2015-05-20 17:09:11 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-20 17:09:13 +0000 |
commit | 3244a6633680cf98fa7a55534e3ebf2dea7389ee (patch) | |
tree | b669a252de950dd42e05b12dcf11bf628544ea1c /core/java | |
parent | 5aa384cdc8f2228ccdecf09d7f15d7f92cd23500 (diff) | |
parent | 709386f501c5a496c8bbfa0336af03f3e09e5484 (diff) | |
download | frameworks_base-3244a6633680cf98fa7a55534e3ebf2dea7389ee.zip frameworks_base-3244a6633680cf98fa7a55534e3ebf2dea7389ee.tar.gz frameworks_base-3244a6633680cf98fa7a55534e3ebf2dea7389ee.tar.bz2 |
Merge "Fix selection handles on older API versions" into mnc-dev
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/widget/Editor.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java index f5a99d1..34620e6 100644 --- a/core/java/android/widget/Editor.java +++ b/core/java/android/widget/Editor.java @@ -3966,7 +3966,11 @@ public class Editor { @Override protected int getHotspotX(Drawable drawable, boolean isRtlRun) { - return isRtlRun ? 0 : drawable.getIntrinsicWidth(); + if (isRtlRun) { + return drawable.getIntrinsicWidth() / 4; + } else { + return (drawable.getIntrinsicWidth() * 3) / 4; + } } @Override @@ -4084,7 +4088,11 @@ public class Editor { @Override protected int getHotspotX(Drawable drawable, boolean isRtlRun) { - return isRtlRun ? drawable.getIntrinsicWidth() : 0; + if (isRtlRun) { + return (drawable.getIntrinsicWidth() * 3) / 4; + } else { + return drawable.getIntrinsicWidth() / 4; + } } @Override |