@@ -87,19 +87,19 @@ export function _setAndroidFragmentTransitions(
8787 }
8888
8989 let useLollipopTransition = ! ! ( name && ( name . indexOf ( "slide" ) === 0 || name === "fade" || name === "explode" ) && sdkVersion ( ) >= 21 ) ;
90- // [nested frames / fragments] force disable lollipop transitions in case nested fragments
91- // are detected as applying dummy animator to the nested fragment with the same duration as
92- // the exit animator of the removing parent fragment as a workaround for
90+ // [nested frames / fragments] force disable lollipop transitions in case nested fragments
91+ // are detected as applying dummy animator to the nested fragment with the same duration as
92+ // the exit animator of the removing parent fragment as a workaround for
9393 // https://code.google.com/p/android/issues/detail?id=55228 works only if custom animations are
9494 // used
9595 // NOTE: this effectively means you cannot use Explode transition in nested frames scenarios as
9696 // we have implementations only for slide, fade, and flip
97- if ( currentFragment &&
97+ if ( currentFragment &&
9898 currentFragment . getChildFragmentManager ( ) &&
9999 currentFragment . getChildFragmentManager ( ) . getFragments ( ) . toArray ( ) . length > 0 ) {
100100 useLollipopTransition = false ;
101101 }
102-
102+
103103 if ( ! animated ) {
104104 name = "none" ;
105105 } else if ( transition ) {
@@ -114,8 +114,9 @@ export function _setAndroidFragmentTransitions(
114114 let currentFragmentNeedsDifferentAnimation = false ;
115115 if ( currentEntry ) {
116116 _updateTransitions ( currentEntry ) ;
117- if ( currentEntry . transitionName !== name
118- || currentEntry . transition !== transition ) {
117+ if ( currentEntry . transitionName !== name ||
118+ currentEntry . transition !== transition ||
119+ ! useLollipopTransition ) {
119120 clearExitAndReenterTransitions ( currentEntry , true ) ;
120121 currentFragmentNeedsDifferentAnimation = true ;
121122 }
0 commit comments