mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(tabs): resources passing
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user