Skip to content

Commit

Permalink
[Android] update view when go back to previous screen (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
r0b0t3d authored and kmagiera committed Jan 20, 2020
1 parent 78c7745 commit 5832593
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ protected boolean hasScreen(ScreenFragment screenFragment) {
protected void onAttachedToWindow() {
super.onAttachedToWindow();
mIsAttached = true;
mNeedUpdate = true;
mFragmentManager = findFragmentManager();
updateIfNeeded();
}
Expand All @@ -253,6 +254,7 @@ protected void onDetachedFromWindow() {
mFragmentManager = null;
// so we don't add the same screen twice after re-attach
removeAllViews();
mActiveScreenFragments.clear();
// after re-attach we'll update the screen and add views again
markUpdated();
}
Expand Down

0 comments on commit 5832593

Please sign in to comment.