| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -527,10 +527,22 @@ function getAnimatorState(entry: BackstackEntry): AnimatorState { | |||
| 527 | 527 | ||
| 528 | 528 | function restoreAnimatorState(entry: BackstackEntry, snapshot: AnimatorState): void { | |
| 529 | 529 | const expandedEntry = <any>entry; | |
| 530 | - expandedEntry.enterAnimator = snapshot.enterAnimator; | ||
| 531 | - expandedEntry.exitAnimator = snapshot.exitAnimator; | ||
| 532 | - expandedEntry.popEnterAnimator = snapshot.popEnterAnimator; | ||
| 533 | - expandedEntry.popExitAnimator = snapshot.popExitAnimator; | ||
| 530 | + if (snapshot.enterAnimator) { | ||
| 531 | + expandedEntry.enterAnimator = snapshot.enterAnimator; | ||
| 532 | + } | ||
| 533 | + | ||
| 534 | + if (snapshot.exitAnimator) { | ||
| 535 | + expandedEntry.exitAnimator = snapshot.exitAnimator; | ||
| 536 | + } | ||
| 537 | + | ||
| 538 | + if (snapshot.popEnterAnimator) { | ||
| 539 | + expandedEntry.popEnterAnimator = snapshot.popEnterAnimator; | ||
| 540 | + } | ||
| 541 | + | ||
| 542 | + if (snapshot.popExitAnimator) { | ||
| 543 | + expandedEntry.popExitAnimator = snapshot.popExitAnimator; | ||
| 544 | + } | ||
| 545 | + | ||
| 534 | 546 | expandedEntry.transitionName = snapshot.transitionName; | |
| 535 | 547 | } | |
| 536 | 548 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments