mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 09:33:39 +02:00
Cancel biometric prompt on destroy
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user