summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorMihai Popa <popam@google.com>2018-05-24 14:25:11 +0100
committerMihai Popa <popam@google.com>2018-05-30 12:52:50 +0100
commitce642dc2ff146f8adf01290ea9bf09e4d976e6d2 (patch)
treeb928fb3f77daf714bd1a6c8aef27cbb6bb0bb95c /tools/aapt2/diff/Diff.cpp
parenta41a7094ac17ae3e88e3cb0757a30548bcbcc40f (diff)
Supress text replacement spans for ellipsis
When a sequence of characters belonging to a text is ellipsized, we usually replace the first characters with ... and then all the others with a 0 width character, knowing that they will be drawn, but will be invisible. However, these positions could have had ReplacementSpans attached to them, such as EmojiTypefaceSpan when the EmojiCompat library is used. When this happened, all the ellipsized out characters were invisible, apart from emojis, which were still drawn as usual (as they were replacing sequences of 0 width characters). This CL fixes this behaviour, by skipping those ReplacementSpans that were completely included in ellipsis. Please check the bug for a more detailed explanation. Bug: 69802699 Test: manual testing Test: atest FrameworksCoreTests:android.text.TextLineTest Change-Id: If9758537948abaa0226fe6b551a703110c5457b9
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions