mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
@ -236,7 +236,7 @@ export class Frame extends frameCommon.Frame {
|
|||||||
// This bug is fixed on API19+
|
// This bug is fixed on API19+
|
||||||
ensureAnimationFixed();
|
ensureAnimationFixed();
|
||||||
let trans: number;
|
let trans: number;
|
||||||
if (this.android.cachePagesOnNavigate && animationFixed < 0) {
|
if (this.android.cachePagesOnNavigate && animationFixed < 0 && !navigationTransition) {
|
||||||
// Apparently, there is an Android bug with when hiding fragments with animation.
|
// Apparently, there is an Android bug with when hiding fragments with animation.
|
||||||
// https://code.google.com/p/android/issues/detail?id=32405
|
// https://code.google.com/p/android/issues/detail?id=32405
|
||||||
// When bug is fixed use animated variable.
|
// When bug is fixed use animated variable.
|
||||||
|
@ -402,6 +402,7 @@ export function _removePageNativeViewFromAndroidParent(page: Page): void {
|
|||||||
if (trace.enabled) {
|
if (trace.enabled) {
|
||||||
trace.write(`REMOVED ${page}._nativeView from its Android parent`, trace.categories.Transition);
|
trace.write(`REMOVED ${page}._nativeView from its Android parent`, trace.categories.Transition);
|
||||||
}
|
}
|
||||||
|
page._onDetached(true);
|
||||||
androidParent.removeView(page._nativeView);
|
androidParent.removeView(page._nativeView);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user