commit | 61d6984773c2ca07ca40b79ca5ae9408f12cb6af | [log] [tgz] |
---|---|---|
author | Ibrahim Yilmaz <iyz@google.com> | Wed Sep 06 10:38:35 2023 +0000 |
committer | Ibrahim Yilmaz <iyz@google.com> | Wed Sep 20 17:53:00 2023 +0000 |
tree | 86694bdca6cb65929496945bb687534b23e1920a | |
parent | 31af7513962ae0e18b4bd4b44a23da93245bbdcd [diff] |
Apply PrecomputedText only ImageFloatingTV and its children TextView might use different text layout than StaticLayout such as BoringLayout. BoringLayout does not use PrecomputedText and benchmarks show that PrecomputedText(Custom Spannable String) could increase onMeasure time of TextView. That's why we only apply PrecomputedText to ImageFloatingTV and MessagingTextMessage. Bug: 289250881 Test: SystemUITests and perfetto Change-Id: I6fa6bbb9fd8fae855228eeac266d33ce95d99319