Skip to content

Commit

Permalink
Merge pull request #552 from pye52/master
Browse files Browse the repository at this point in the history
Fix #551, fix the fragment loaded by `loadRootFragment()` was callback twice
  • Loading branch information
YoKeyword authored Sep 13, 2017
2 parents 7943fdf + 426ec8f commit 62d30ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ public Animation onCreateAnimation(int transit, boolean enter, int nextAnim) {
enterAnim = mAnimHelper.getNoneAnim();
} else {
enterAnim = mAnimHelper.enterAnim;
fixAnimationListener(enterAnim);
}
fixAnimationListener(enterAnim);
return enterAnim;
} else {
return mAnimHelper.popExitAnim;
Expand Down Expand Up @@ -160,7 +160,7 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
}

if (savedInstanceState != null
|| mRootStatus != STATUS_UN_ROOT
|| mRootStatus == STATUS_ROOT_ANIM_DISABLE
|| (mFragment.getTag() != null && mFragment.getTag().startsWith("android:switcher:"))
|| (mReplaceMode && !mFirstCreateView)) {
notifyEnterAnimEnd();
Expand Down

0 comments on commit 62d30ac

Please sign in to comment.