commit | 3e966e2996bddb573b9749ed2597d636bdba05c6 | [log] [tgz] |
---|---|---|
author | Vadim Caen <caen@google.com> | Fri Feb 25 15:14:24 2022 +0100 |
committer | Vadim Caen <caen@google.com> | Fri Feb 25 15:23:02 2022 +0100 |
tree | 39b24f4ccd03d67ecfe508c37e25ffbbb944160d | |
parent | e4590dbf5de319b31d79162ef0f1a481b7987ea2 [diff] |
Fix Activity leaking form OnBackInvokedCallbackWrapper - The callback was not removed on the server in the clear() method since mWindow and mWindowSession fields were cleared before - The wrapper class was not static, risking to leak it's outer class and its field. Test: com.android.launcher3.ui.widget.RequestPinItemTest#testPinWidgetWithConfig Fixes: 220385755 Change-Id: I3e5a81bf48c2272b1cb2b5a9f2ba940d0f794a6f