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
Loading
Please register or sign in to comment