summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorIan Lake <ilake@google.com>2017-04-10 15:51:07 -0700
committerIan Lake <ilake@google.com>2017-04-18 15:33:38 -0700
commit851957cbf913278782a69e946136638b6aafa935 (patch)
tree6ddb0134b42514e73397b47c5f2091d962b344fb /tools/aapt2/java/JavaClassGenerator_test.cpp
parent4b0d2bf70aa1fd9345ab7b7a693fd96878ce1663 (diff)
Move expensive TextClock operations to onAttach
Registering and unregistering are expensive operations that should not be done when the visibility of the TextClock changes. However, we want to ensure that a non-visible TextClock does not consume extra resources or cause layout/redraw passes. By keeping the TextClock registered but avoiding the side effects of onTimeChanged, we can get the best of both worlds. Test: manual testing BUG: 33960344 Change-Id: I80771524a09ca57488834bafd97b570f2a8235db
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions