mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(android): animator restore logic on simulated nav (#6710)
This commit is contained in:
committed by
SvetoslavTsenov
parent
ea44416734
commit
54b6df669b
@@ -527,10 +527,22 @@ function getAnimatorState(entry: BackstackEntry): AnimatorState {
|
|||||||
|
|
||||||
function restoreAnimatorState(entry: BackstackEntry, snapshot: AnimatorState): void {
|
function restoreAnimatorState(entry: BackstackEntry, snapshot: AnimatorState): void {
|
||||||
const expandedEntry = <any>entry;
|
const expandedEntry = <any>entry;
|
||||||
|
if (snapshot.enterAnimator) {
|
||||||
expandedEntry.enterAnimator = snapshot.enterAnimator;
|
expandedEntry.enterAnimator = snapshot.enterAnimator;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (snapshot.exitAnimator) {
|
||||||
expandedEntry.exitAnimator = snapshot.exitAnimator;
|
expandedEntry.exitAnimator = snapshot.exitAnimator;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (snapshot.popEnterAnimator) {
|
||||||
expandedEntry.popEnterAnimator = snapshot.popEnterAnimator;
|
expandedEntry.popEnterAnimator = snapshot.popEnterAnimator;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (snapshot.popExitAnimator) {
|
||||||
expandedEntry.popExitAnimator = snapshot.popExitAnimator;
|
expandedEntry.popExitAnimator = snapshot.popExitAnimator;
|
||||||
|
}
|
||||||
|
|
||||||
expandedEntry.transitionName = snapshot.transitionName;
|
expandedEntry.transitionName = snapshot.transitionName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user