summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorwilsonshih <wilsonshih@google.com>2021-10-20 19:00:22 +0800
committerwilsonshih <wilsonshih@google.com>2021-10-21 09:47:01 +0800
commit1c833479dd5a8b0e8aef736f1536080345c8e6b5 (patch)
treebd0169e7cfffcd866d90684a7ef2c66f4f1f3b98 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent8172fc3e42e54ac325640afc28fa538a8d8668e8 (diff)
Only register listeners if setView was success.
Found a memory leak on ViewRootImpl. If the view wasn't been set to the VRI successfully, there would keep the registed listeners to the AccessibilityManager and DisplayManager forever because there didn't need to deatch anything from window. Another reasonable way is to register all listeners after setView success. Bug: 200843755 Test: manual, hard code to force addWindow fail and monitor no more ViewRootImpl object leaked to AccessibilityManager and DisplayManager. Change-Id: I3c9cc52d0ca4595c74c1dc3c51d286d9e6e3897f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions