commit | 459d5bd503c11478637a0f61f7c952eda1127e74 | [log] [tgz] |
---|---|---|
author | Bryce Lee <brycelee@google.com> | Thu Mar 03 14:00:43 2022 -0800 |
committer | Bryce Lee <brycelee@google.com> | Tue Mar 08 09:35:12 2022 -0800 |
tree | 5c4d8d71599dff9dfda380e9853a79fa748ea4b4 | |
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