Merge "Early exit if the target region is empty" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
47d7cbaf87
@@ -782,7 +782,7 @@ public class TextLine {
|
|||||||
|
|
||||||
int spanStart = runStart;
|
int spanStart = runStart;
|
||||||
int spanLimit;
|
int spanLimit;
|
||||||
if (mSpanned == null) {
|
if (mSpanned == null || runStart == runLimit) {
|
||||||
spanLimit = runLimit;
|
spanLimit = runLimit;
|
||||||
} else {
|
} else {
|
||||||
int target = after ? offset + 1 : offset;
|
int target = after ? offset + 1 : offset;
|
||||||
|
|||||||
Reference in New Issue
Block a user