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

Commit 7d716c6d authored by Seigo Nonaka's avatar Seigo Nonaka Committed by Android (Google) Code Review
Browse files

Merge "Early exit if the target region is empty"

parents d202319c 17e666c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -782,7 +782,7 @@ public class TextLine {

        int spanStart = runStart;
        int spanLimit;
        if (mSpanned == null) {
        if (mSpanned == null || runStart == runLimit) {
            spanLimit = runLimit;
        } else {
            int target = after ? offset + 1 : offset;