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

Commit be566b48 authored by Fabrice Di Meglio's avatar Fabrice Di Meglio Committed by Android (Google) Code Review
Browse files

Merge "Fix bug #5243493 TextView selection is not working correctly when there...

Merge "Fix bug #5243493 TextView selection is not working correctly when there is some RTL run into it"
parents dcc882ed 37166015
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1296,7 +1296,10 @@ public abstract class Layout {
                    float h1 = getHorizontal(st, false, line);
                    float h2 = getHorizontal(en, true, line);

                    dest.addRect(h1, top, h2, bottom, Path.Direction.CW);
                    float left = Math.min(h1, h2);
                    float right = Math.max(h1, h2);

                    dest.addRect(left, top, right, bottom, Path.Direction.CW);
                }
            }
        }