summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jernej Virag <jernej@google.com> 2022-04-05 19:26:15 +0000
committer Jernej Virag <jernej@google.com> 2022-04-06 09:22:22 +0000
commit2d38106f6e4cd8b5b5d86c3fb7476c19cf051749 (patch)
treebfb5d7d29fe1841fdea4eea6e61e2f9c268d78ac /libs/androidfw/StringPool.cpp
parent5e230aef5efaa3b2e9682e47c6c79a7c7f0f92a0 (diff)
Don't trigger TextView relayouts if content doesn't change
We have a few views we commonly update in response to updates - clock, battery and similar percentages. These updates always trigger a requestLayout() call because wrap_content TextViews do that on every setText() call. This CL adds a few guards to lower the amount of relayouts when the content didn't actually update. Bug:228203088 Bug:228166250 Test: On a physical deviceo Change-Id: I6b92f8bfb7aea17e93ff0cbb8507a995f6323ca1
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions