Merge "Fix: setExtractedText partial span change handling." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cb03689fef
@@ -6552,7 +6552,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
if (TextUtils.equals(content.subSequence(start, end), text.text)) {
|
||||
if (text.text instanceof Spanned) {
|
||||
// OK to copy spans only.
|
||||
TextUtils.copySpansFrom((Spanned) text.text, start, end,
|
||||
TextUtils.copySpansFrom((Spanned) text.text, 0, end - start,
|
||||
Object.class, content, start);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user