am 3244a663: Merge "Fix selection handles on older API versions" into mnc-dev
* commit '3244a6633680cf98fa7a55534e3ebf2dea7389ee': Fix selection handles on older API versions
@@ -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
|
||||
|
||||
|
Before Width: | Height: | Size: 368 B After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 241 B After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 467 B After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 466 B After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 684 B After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 889 B After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 858 B After Width: | Height: | Size: 15 KiB |