mirror of https://github.com/M66B/FairEmail.git
Cancel biometric prompt on destroy
This commit is contained in:
parent
18011bb9ed
commit
1d9c0d4988
|
@ -1141,8 +1141,8 @@ public class Helper {
|
||||||
prompt.authenticate(info.build());
|
prompt.authenticate(info.build());
|
||||||
|
|
||||||
owner.getLifecycle().addObserver(new LifecycleObserver() {
|
owner.getLifecycle().addObserver(new LifecycleObserver() {
|
||||||
@OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
|
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
||||||
public void onPause() {
|
public void onDestroy() {
|
||||||
prompt.cancelAuthentication();
|
prompt.cancelAuthentication();
|
||||||
handler.post(cancelled);
|
handler.post(cancelled);
|
||||||
owner.getLifecycle().removeObserver(this);
|
owner.getLifecycle().removeObserver(this);
|
||||||
|
|
Loading…
Reference in New Issue