FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(android): resource ID #0xffffffec not found on nav (#6955) · NativeScript/NativeScript@33d6d1f · GitHub

Commit 33d6d1f

Browse files
authored andcommitted
fix(android): resource ID #0xffffffec not found on nav (#6955)
1 parent 65558da commit 33d6d1f

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

‎tns-core-modules/ui/frame/fragment.transitions.android.ts‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)

Back | FazBrowse Home | New Git URL