Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94dc7a57 authored by Mady Mellor's avatar Mady Mellor Committed by Android Git Automerger
Browse files

am 3244a663: Merge "Fix selection handles on older API versions" into mnc-dev

* commit '3244a663':
  Fix selection handles on older API versions
parents 02d9e6e5 3244a663
Loading
Loading
Loading
Loading
+10 −2
Original line number Original line Diff line number Diff line
@@ -3966,7 +3966,11 @@ public class Editor {


        @Override
        @Override
        protected int getHotspotX(Drawable drawable, boolean isRtlRun) {
        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
        @Override
@@ -4084,7 +4088,11 @@ public class Editor {


        @Override
        @Override
        protected int getHotspotX(Drawable drawable, boolean isRtlRun) {
        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
        @Override
+14.2 KiB (14.5 KiB)
Loading image diff...
+14.2 KiB (14.5 KiB)
Loading image diff...
+14.1 KiB (14.4 KiB)
Loading image diff...
+14.1 KiB (14.3 KiB)
Loading image diff...
Loading