mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Fix broken _onAndroidAnimationEnd after back navigation
This commit is contained in:
@ -113,13 +113,19 @@ export class Animation extends AnimationBase {
|
|||||||
if (traceEnabled()) {
|
if (traceEnabled()) {
|
||||||
traceWrite("MainAnimatorListener.onAnimationEnd(" + animator + ")", traceCategories.Animation);
|
traceWrite("MainAnimatorListener.onAnimationEnd(" + animator + ")", traceCategories.Animation);
|
||||||
}
|
}
|
||||||
that.get()._onAndroidAnimationEnd();
|
const thisRef = that.get();
|
||||||
|
if (thisRef) {
|
||||||
|
thisRef._onAndroidAnimationEnd();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onAnimationCancel: function (animator: android.animation.Animator): void {
|
onAnimationCancel: function (animator: android.animation.Animator): void {
|
||||||
if (traceEnabled()) {
|
if (traceEnabled()) {
|
||||||
traceWrite("MainAnimatorListener.onAnimationCancel(" + animator + ")", traceCategories.Animation);
|
traceWrite("MainAnimatorListener.onAnimationCancel(" + animator + ")", traceCategories.Animation);
|
||||||
}
|
}
|
||||||
that.get()._onAndroidAnimationCancel();
|
const thisRef = that.get();
|
||||||
|
if (thisRef) {
|
||||||
|
thisRef._onAndroidAnimationCancel();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user