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