diff --git a/ui/segmented-bar/segmented-bar.android.ts b/ui/segmented-bar/segmented-bar.android.ts index b0e942d66..bb4ac9fc5 100644 --- a/ui/segmented-bar/segmented-bar.android.ts +++ b/ui/segmented-bar/segmented-bar.android.ts @@ -87,7 +87,10 @@ function onItemsPropertyChanged(data: dependencyObservable.PropertyChangeData) { for (tabIndex = 0; tabIndex < tabHost.getTabWidget().getTabCount(); tabIndex++) { var tabChild = tabHost.getTabWidget().getChildTabViewAt(tabIndex); var t = tabChild.getChildAt(1); - t.setTextColor(view.color.android); + + if (view.color) { + t.setTextColor(view.color.android); + } } } }