From a036f783650feee0b38349e60a75b67b511d57b1 Mon Sep 17 00:00:00 2001 From: Nedyalko Nikolov Date: Wed, 18 May 2016 11:16:40 +0300 Subject: [PATCH] Removed unnecessary view state creation. --- ui/tab-view/tab-view.android.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ui/tab-view/tab-view.android.ts b/ui/tab-view/tab-view.android.ts index d45375edc..501053d77 100644 --- a/ui/tab-view/tab-view.android.ts +++ b/ui/tab-view/tab-view.android.ts @@ -92,11 +92,6 @@ function ensurePagerAdapterClass() { throw new Error("Expected " + nativeView.toString() + " to equal " + _object.toString()); } - if (!this[VIEWS_STATES]) { - this[VIEWS_STATES] = new android.util.SparseArray(); - } - nativeView.saveHierarchyState(this[VIEWS_STATES]); - container.removeView(nativeView); // Note: this.owner._removeView will clear item.view._nativeView.