Clear boundary

pull/207/head
M66B 2 years ago
parent 1479617df8
commit 8d7876f4fb

@ -773,6 +773,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
void destroy(State state) {
state.destroyed = true;
this.intf = null;
Log.i("Boundary destroy");
executor.submit(new Runnable() {

@ -603,6 +603,7 @@ public class ViewModelMessages extends ViewModel {
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
public void onDestroyed() {
boundary.destroy(state);
boundary = null;
owner.getLifecycle().removeObserver(this);
}
});

Loading…
Cancel
Save