From f79600585ab284a8e700572418ca207fbceb8ce4 Mon Sep 17 00:00:00 2001 From: Nedyalko Nikolov Date: Fri, 22 Jan 2016 08:23:52 +0200 Subject: [PATCH] Adding view to parent only if not already added. --- ui/tab-view/tab-view.android.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/tab-view/tab-view.android.ts b/ui/tab-view/tab-view.android.ts index 37a6b6fa9..ed71a23cf 100644 --- a/ui/tab-view/tab-view.android.ts +++ b/ui/tab-view/tab-view.android.ts @@ -244,7 +244,9 @@ export class TabView extends common.TabView { } item._parent = this; - this._addView(item.view, idx); + if (item.view.parent !== this) { + this._addView(item.view, idx); + } tabItems.push(this.createTabItem(item)); });