remove gc call (#2848)

This commit is contained in:
Hristo Hristov
2016-10-05 17:42:07 +03:00
committed by GitHub
parent ed2ef0eeb4
commit ed36106e9e

View File

@ -7,27 +7,6 @@ import * as animationModule from "ui/animation";
import lazy from "utils/lazy";
import trace = require("trace");
let idleGCHandler;
let scheduledGC = false;
function scheduleGCOnIdle() {
if (!idleGCHandler) {
idleGCHandler = new android.os.MessageQueue.IdleHandler({
queueIdle: function () {
gc();
scheduledGC = false;
return false;
}
});
}
if (!scheduledGC) {
android.os.Looper.myQueue().addIdleHandler(idleGCHandler);
scheduledGC = true;
}
return idleGCHandler;
}
let slideTransition: any;
function ensureSlideTransition() {
if (!slideTransition) {
@ -443,8 +422,6 @@ function _completePageRemoval(fragment: any, isBack: boolean) {
}
entry.isNavigation = undefined;
scheduleGCOnIdle();
}
export function _removePageNativeViewFromAndroidParent(page: Page): void {