mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Remove life cycle observers
This commit is contained in:
@@ -1915,6 +1915,7 @@ public class Helper {
|
||||
public void onDestroy() {
|
||||
Log.i("Authenticate destroyed");
|
||||
ApplicationEx.getMainHandler().post(cancelPrompt);
|
||||
owner.getLifecycle().removeObserver(this);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -2083,6 +2084,11 @@ public class Helper {
|
||||
else
|
||||
intf.onSelected(selected);
|
||||
}
|
||||
|
||||
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
||||
public void onDestroy() {
|
||||
owner.getLifecycle().removeObserver(this);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user