Skip to content

Commit 1800cc7

Browse files
committed
Fix #875, not callback onEnterAnimationEnd() when calling extraTransaction().setCustomAnimations().start()
1 parent cef5447 commit 1800cc7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fragmentation_core/src/main/java/me/yokeyword/fragmentation/SupportFragmentDelegate.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
205205
|| (mFragment.getTag() != null && mFragment.getTag().startsWith("android:switcher:"))
206206
|| (mReplaceMode && !mFirstCreateView)) {
207207
notifyEnterAnimEnd();
208+
} else if (mCustomEnterAnim != Integer.MIN_VALUE) {
209+
fixAnimationListener(mCustomEnterAnim == 0 ?
210+
mAnimHelper.getNoneAnim() : AnimationUtils.loadAnimation(_mActivity, mCustomEnterAnim));
208211
}
209212

210213
if (mFirstCreateView) {

0 commit comments

Comments
 (0)