Merge "Fix: setExtractedText partial span change handling." into nyc-dev

This commit is contained in:
Keisuke Kuroyanagi
2016-03-17 06:56:22 +00:00
committed by Android (Google) Code Review

View File

@@ -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 {