Cancel biometric prompt on destroy

This commit is contained in:
M66B 2020-05-30 16:21:25 +02:00
parent 18011bb9ed
commit 1d9c0d4988
1 changed files with 2 additions and 2 deletions

View File

@ -1141,8 +1141,8 @@ public class Helper {
prompt.authenticate(info.build());
owner.getLifecycle().addObserver(new LifecycleObserver() {
@OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
public void onPause() {
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
public void onDestroy() {
prompt.cancelAuthentication();
handler.post(cancelled);
owner.getLifecycle().removeObserver(this);