commit | 115934b94c1b10760796eca2920584aeb3ce862a | [log] [tgz] |
---|---|---|
author | Aaron Liu <aaronjli@google.com> | Tue Jan 09 11:52:38 2024 -0800 |
committer | Aaron Liu <aaronjli@google.com> | Wed Jan 10 17:23:09 2024 +0000 |
tree | b28f61e950b52ccf803eba5bdf277c0162ec3896 | |
parent | fd5d1ad6d1efd7c6b6731634ae90dd02e45930c4 [diff] |
Move register callback on view attach and detach callback being added and removed in onResume and onPause is not reliable and is causing memory leaks, which is causing ANRs. Fixes: 318362552 Test: open simpin view and see that it works properly. Test: atest KeyguardSimPinViewControllerTest Flag: NONE Change-Id: I44f3fc61d2a43bfd175f46a581e67da2f5c7be4f