diff options
| author | 2022-03-03 14:00:43 -0800 | |
|---|---|---|
| committer | 2022-03-08 09:35:12 -0800 | |
| commit | 459d5bd503c11478637a0f61f7c952eda1127e74 (patch) | |
| tree | 5c4d8d71599dff9dfda380e9853a79fa748ea4b4 /libs/androidfw/StringPool.cpp | |
| parent | 6308c3f6f13c0726a81cf49e663a4ef251ff0eb0 (diff) | |
Make OnBackInvoked callback a WeakReference.
OnBackInvokedCallbackWrapper instances are sent to the WindowState over
AIDL. This leads to Activity leak issues even if the reference is
cleared in the remote side. This change makes the held reference weak
So it is not retained.
Test: verified leak no longer present through hprof
Bug: 221285764
Change-Id: I1c529d27769e2426898776e47f37bdb7abe1f681
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions