1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-08 07:26:15 +00:00

Cancel biometric prompt on destroy

This commit is contained in:
M66B 2020-05-30 16:21:25 +02:00
parent 18011bb9ed
commit 1d9c0d4988

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);