Removed unnecessary view state creation.

This commit is contained in:
Nedyalko Nikolov
2016-05-18 11:16:40 +03:00
parent 114f8b47ae
commit a036f78365

View File

@ -92,11 +92,6 @@ function ensurePagerAdapterClass() {
throw new Error("Expected " + nativeView.toString() + " to equal " + _object.toString()); throw new Error("Expected " + nativeView.toString() + " to equal " + _object.toString());
} }
if (!this[VIEWS_STATES]) {
this[VIEWS_STATES] = new android.util.SparseArray<android.os.Parcelable>();
}
nativeView.saveHierarchyState(this[VIEWS_STATES]);
container.removeView(nativeView); container.removeView(nativeView);
// Note: this.owner._removeView will clear item.view._nativeView. // Note: this.owner._removeView will clear item.view._nativeView.