mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 01:36:55 +00:00
Remove lifecycle observers
This commit is contained in:
parent
a001d0f566
commit
440759066d
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue