More transition fixes and optimizations

Related to  #2225
This commit is contained in:
Rossen Hristov
2016-06-06 15:44:58 +03:00
parent 1ad23a3a78
commit bab2bb13d0
2 changed files with 2 additions and 1 deletions

View File

@ -236,7 +236,7 @@ export class Frame extends frameCommon.Frame {
// This bug is fixed on API19+
ensureAnimationFixed();
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.
// https://code.google.com/p/android/issues/detail?id=32405
// When bug is fixed use animated variable.

View File

@ -402,6 +402,7 @@ export function _removePageNativeViewFromAndroidParent(page: Page): void {
if (trace.enabled) {
trace.write(`REMOVED ${page}._nativeView from its Android parent`, trace.categories.Transition);
}
page._onDetached(true);
androidParent.removeView(page._nativeView);
}
}