commit | 222e682161d1366611664c7becdb830ca59abbfe | [log] [tgz] |
---|---|---|
author | czq <czq@google.com> | Mon Dec 05 15:56:01 2022 +0800 |
committer | czq <czq@google.com> | Sun Dec 18 15:58:43 2022 +0800 |
tree | 33388ee095919ee0bc0c7ff30e00b99d66eeba2b | |
parent | 329f5f38580e38ea4b4d8c212c3a375349851cc2 [diff] |
Make TextAppearanceInfo support spannable text Extract the text appearance from the character before cursor when its TextPaint is overided by CharaterStyle spans. Also move the assignment code from Editor to TextAppearanceInfo#createFromTextView for easier testing. Bug: 261378534 Test: atest android.view.inputmethod.TextAppearanceInfoTest Change-Id: I9365767762bce5137f454260e342e833d3f35e55