From 15a9df1f66b5d80838fede44068de65f8d726c0a Mon Sep 17 00:00:00 2001 From: Vasko Date: Tue, 31 Mar 2020 16:03:41 +0300 Subject: [PATCH] fix(tabs): resources passing --- .../ui/bottom-navigation/bottom-navigation.android.ts | 2 +- nativescript-core/ui/tab-view/tab-view.android.ts | 2 +- nativescript-core/ui/tabs/tabs.android.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts b/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts index 76b47e632..26e4a4989 100644 --- a/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts +++ b/nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts @@ -711,7 +711,7 @@ export class BottomNavigation extends TabNavigationBase { if (value instanceof Color) { this._bottomNavigationBar.setBackgroundColor(value.android); } else { - this._bottomNavigationBar.setBackground(tryCloneDrawable(value, this.nativeViewProtected.getResources)); + this._bottomNavigationBar.setBackground(tryCloneDrawable(value, this.nativeViewProtected.getResources())); } this.updateTabStripItems(); diff --git a/nativescript-core/ui/tab-view/tab-view.android.ts b/nativescript-core/ui/tab-view/tab-view.android.ts index 600046f90..073afae6b 100644 --- a/nativescript-core/ui/tab-view/tab-view.android.ts +++ b/nativescript-core/ui/tab-view/tab-view.android.ts @@ -733,7 +733,7 @@ export class TabView extends TabViewBase { if (value instanceof Color) { this._tabLayout.setBackgroundColor(value.android); } else { - this._tabLayout.setBackground(tryCloneDrawable(value, this.nativeViewProtected.getResources)); + this._tabLayout.setBackground(tryCloneDrawable(value, this.nativeViewProtected.getResources())); } } diff --git a/nativescript-core/ui/tabs/tabs.android.ts b/nativescript-core/ui/tabs/tabs.android.ts index cf9691a08..8fc36ef26 100644 --- a/nativescript-core/ui/tabs/tabs.android.ts +++ b/nativescript-core/ui/tabs/tabs.android.ts @@ -794,7 +794,7 @@ export class Tabs extends TabsBase { if (value instanceof Color) { this._tabsBar.setBackgroundColor(value.android); } else { - this._tabsBar.setBackground(tryCloneDrawable(value, this.nativeViewProtected.getResources)); + this._tabsBar.setBackground(tryCloneDrawable(value, this.nativeViewProtected.getResources())); } this.updateTabStripItems();