1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Remove lifecycle observers

This commit is contained in:
M66B 2022-04-13 11:15:35 +02:00
parent a001d0f566
commit 440759066d

View file

@ -4961,6 +4961,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
public void onDestroyed() {
try {
dialog.dismiss();
owner.getLifecycle().removeObserver(this);
} catch (Throwable ex) {
Log.e(ex);
}
@ -7482,6 +7483,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
public void onDestroyed() {
Log.d(AdapterMessage.this + " parent destroyed");
AdapterMessage.this.parentFragment = null;
owner.getLifecycle().removeObserver(this);
}
});
}