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

Commit 160827fb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Early exit if the target region is empty" into sc-dev am: 47d7cbaf

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15391846

Change-Id: I360679703d23d299b12ed9dc05a7b4c856af8825
parents 114f3ee9 47d7cbaf
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;