Skip to content

Commit

Permalink
fix detaching and destroying presenter in ViewGroup after view added …
Browse files Browse the repository at this point in the history
…to container again.
  • Loading branch information
Azat Galiullin committed Mar 21, 2019
1 parent 999e754 commit 8c6d533
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ protected P createViewIdAndCreatePresenter() {
mosbyViewId = UUID.randomUUID().toString();
PresenterManager.putPresenter(PresenterManager.getActivity(context), mosbyViewId, presenter);
}
presenterDestroyed = false;
return presenter;
}

Expand Down Expand Up @@ -167,6 +168,7 @@ protected P createViewIdAndCreatePresenter() {

delegateCallback.setPresenter(presenter);
presenter.attachView(view);
presenterDetached = false;

/*
if (viewStateWillBeRestored) {
Expand Down

0 comments on commit 8c6d533

Please sign in to comment.