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
2 files changed