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:
parent
18011bb9ed
commit
1d9c0d4988
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue