Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2d38106f authored by Jernej Virag's avatar Jernej Virag
Browse files

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
parent 5e230aef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment