mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 22:21:18 +00:00
Force recycle views on destroy
This commit is contained in:
parent
21a9bc0d91
commit
4f1fcadeb5
1 changed files with 1 additions and 0 deletions
|
@ -5653,6 +5653,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
||||
public void onDestroyed() {
|
||||
try {
|
||||
onViewRecycled(ViewHolder.this);
|
||||
dialog.dismiss();
|
||||
owner.getLifecycle().removeObserver(this);
|
||||
} catch (Throwable ex) {
|
||||
|
|
Loading…
Reference in a new issue