summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Hawkwood Glazier <jglazier@google.com> 2024-03-05 20:00:37 +0000
committer Hawkwood Glazier <jglazier@google.com> 2024-03-05 21:49:14 +0000
commitb0da3984c4316c5748258a24a418249fa4c193ef (patch)
tree2993e1e83ac699559d7d4a31878224cbe2bea08b /libs/androidfw/StringPool.cpp
parent5f812109c3bde56221a8bdc3dee9eddf565743d3 (diff)
Update TextAnimator to retry with updated layout when failed
The source of the underlying issue is that the text layout is a shared object between the TextView which creates it and the TextAnimator which consumes it and caches certain values internally. When the TextView mutates the layout, the TextAnimator must be notified via updateLayout. This change prevents that exception from crashing the application by updating the layout after the fact, and retyring the setTextStyle call. If it happens twice in a row, we let the exception escape and still crash. Ideally the callsites would always call updateLayout when the layout is mutated, but this has proved difficult to detect robustly. Flag: N/A Bug: 305221458 Test: Manual & Presubmits Change-Id: I3f030674636710c0dadfd133c2aa72530ab1be10
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions