mirror of https://github.com/M66B/FairEmail.git
Clear boundary
This commit is contained in:
parent
1479617df8
commit
8d7876f4fb
|
@ -773,6 +773,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
|
||||||
|
|
||||||
void destroy(State state) {
|
void destroy(State state) {
|
||||||
state.destroyed = true;
|
state.destroyed = true;
|
||||||
|
this.intf = null;
|
||||||
Log.i("Boundary destroy");
|
Log.i("Boundary destroy");
|
||||||
|
|
||||||
executor.submit(new Runnable() {
|
executor.submit(new Runnable() {
|
||||||
|
|
|
@ -603,6 +603,7 @@ public class ViewModelMessages extends ViewModel {
|
||||||
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
||||||
public void onDestroyed() {
|
public void onDestroyed() {
|
||||||
boundary.destroy(state);
|
boundary.destroy(state);
|
||||||
|
boundary = null;
|
||||||
owner.getLifecycle().removeObserver(this);
|
owner.getLifecycle().removeObserver(this);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue