Skip to content

Commit 15a9df1

Browse files
committed
fix(tabs): resources passing
1 parent 5143f2d commit 15a9df1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

nativescript-core/ui/bottom-navigation/bottom-navigation.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ export class BottomNavigation extends TabNavigationBase {
711711
if (value instanceof Color) {
712712
this._bottomNavigationBar.setBackgroundColor(value.android);
713713
} else {
714-
this._bottomNavigationBar.setBackground(tryCloneDrawable(value, this.nativeViewProtected.getResources));
714+
this._bottomNavigationBar.setBackground(tryCloneDrawable(value, this.nativeViewProtected.getResources()));
715715
}
716716

717717
this.updateTabStripItems();

nativescript-core/ui/tab-view/tab-view.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ export class TabView extends TabViewBase {
733733
if (value instanceof Color) {
734734
this._tabLayout.setBackgroundColor(value.android);
735735
} else {
736-
this._tabLayout.setBackground(tryCloneDrawable(value, this.nativeViewProtected.getResources));
736+
this._tabLayout.setBackground(tryCloneDrawable(value, this.nativeViewProtected.getResources()));
737737
}
738738
}
739739

nativescript-core/ui/tabs/tabs.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ export class Tabs extends TabsBase {
794794
if (value instanceof Color) {
795795
this._tabsBar.setBackgroundColor(value.android);
796796
} else {
797-
this._tabsBar.setBackground(tryCloneDrawable(value, this.nativeViewProtected.getResources));
797+
this._tabsBar.setBackground(tryCloneDrawable(value, this.nativeViewProtected.getResources()));
798798
}
799799

800800
this.updateTabStripItems();

0 commit comments

Comments
 (0)