diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java index f5a99d1bf2083..34620e6b620f6 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 diff --git a/core/res/res/drawable-hdpi/text_select_handle_left_mtrl_alpha.png b/core/res/res/drawable-hdpi/text_select_handle_left_mtrl_alpha.png index 1550b442d6dfe..7ccb70a8f883b 100644 Binary files a/core/res/res/drawable-hdpi/text_select_handle_left_mtrl_alpha.png and b/core/res/res/drawable-hdpi/text_select_handle_left_mtrl_alpha.png differ diff --git a/core/res/res/drawable-hdpi/text_select_handle_right_mtrl_alpha.png b/core/res/res/drawable-hdpi/text_select_handle_right_mtrl_alpha.png index b309dfdc02c4b..e65b89dc6fb58 100644 Binary files a/core/res/res/drawable-hdpi/text_select_handle_right_mtrl_alpha.png and b/core/res/res/drawable-hdpi/text_select_handle_right_mtrl_alpha.png differ diff --git a/core/res/res/drawable-mdpi/text_select_handle_left_mtrl_alpha.png b/core/res/res/drawable-mdpi/text_select_handle_left_mtrl_alpha.png index b36a41373aeff..775f1bb8095c0 100644 Binary files a/core/res/res/drawable-mdpi/text_select_handle_left_mtrl_alpha.png and b/core/res/res/drawable-mdpi/text_select_handle_left_mtrl_alpha.png differ diff --git a/core/res/res/drawable-mdpi/text_select_handle_right_mtrl_alpha.png b/core/res/res/drawable-mdpi/text_select_handle_right_mtrl_alpha.png index afd0bd226b72e..68fd0533cb8d6 100644 Binary files a/core/res/res/drawable-mdpi/text_select_handle_right_mtrl_alpha.png and b/core/res/res/drawable-mdpi/text_select_handle_right_mtrl_alpha.png differ diff --git a/core/res/res/drawable-xhdpi/text_select_handle_left_mtrl_alpha.png b/core/res/res/drawable-xhdpi/text_select_handle_left_mtrl_alpha.png index 58f8c439a673a..b5c2a9106a4da 100644 Binary files a/core/res/res/drawable-xhdpi/text_select_handle_left_mtrl_alpha.png and b/core/res/res/drawable-xhdpi/text_select_handle_left_mtrl_alpha.png differ diff --git a/core/res/res/drawable-xhdpi/text_select_handle_right_mtrl_alpha.png b/core/res/res/drawable-xhdpi/text_select_handle_right_mtrl_alpha.png index 42a893da515bc..6c6185c1217df 100644 Binary files a/core/res/res/drawable-xhdpi/text_select_handle_right_mtrl_alpha.png and b/core/res/res/drawable-xhdpi/text_select_handle_right_mtrl_alpha.png differ diff --git a/core/res/res/drawable-xxhdpi/text_select_handle_left_mtrl_alpha.png b/core/res/res/drawable-xxhdpi/text_select_handle_left_mtrl_alpha.png index d0f274a03fde5..f0e32afddc33a 100644 Binary files a/core/res/res/drawable-xxhdpi/text_select_handle_left_mtrl_alpha.png and b/core/res/res/drawable-xxhdpi/text_select_handle_left_mtrl_alpha.png differ diff --git a/core/res/res/drawable-xxhdpi/text_select_handle_right_mtrl_alpha.png b/core/res/res/drawable-xxhdpi/text_select_handle_right_mtrl_alpha.png index f1f637a9d06b4..260e090bb2040 100644 Binary files a/core/res/res/drawable-xxhdpi/text_select_handle_right_mtrl_alpha.png and b/core/res/res/drawable-xxhdpi/text_select_handle_right_mtrl_alpha.png differ diff --git a/core/res/res/drawable-xxxhdpi/text_select_handle_left_mtrl_alpha.png b/core/res/res/drawable-xxxhdpi/text_select_handle_left_mtrl_alpha.png index 643168f15b78d..a7a48b8a5cbe5 100644 Binary files a/core/res/res/drawable-xxxhdpi/text_select_handle_left_mtrl_alpha.png and b/core/res/res/drawable-xxxhdpi/text_select_handle_left_mtrl_alpha.png differ diff --git a/core/res/res/drawable-xxxhdpi/text_select_handle_right_mtrl_alpha.png b/core/res/res/drawable-xxxhdpi/text_select_handle_right_mtrl_alpha.png index e8f3aad7a99e9..2c72f4f0b8907 100644 Binary files a/core/res/res/drawable-xxxhdpi/text_select_handle_right_mtrl_alpha.png and b/core/res/res/drawable-xxxhdpi/text_select_handle_right_mtrl_alpha.png differ