summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Jernej Virag <jernej@google.com> 2022-03-31 15:05:31 +0000
committer Jernej Virag <jernej@google.com> 2022-04-21 11:56:42 +0000
commit8d056ab409fa194695c5bcb2bede128b9285abcb (patch)
tree79a69a20d8d0d7c1ab33b81cc11514b46ec0fc5c /libs/androidfw/AssetsProvider.cpp
parent64202a268d2ec420f1f6660a3f444a232191bfb3 (diff)
Don't trigger full relayout if DateTimeView doesn't change
Right now, when an update is triggered, DateTimeView will trigger a full relayout of its parents because it always calls setText, even if it doesn't change the contents (later down the line, TextView will call requestLayout() for wrap_content, even if size didn't change). Checking if the content actually changed avoids that extra layout pass which avoids needless relayouts in e.g. SystemUI Notifications. Bug:220712538 Test: atest DateTimeView (new test failed before fix / passes after fix) Change-Id: Ib391d6715136b64b98f0bda3b3d4a3f991809c89
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions