mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix a crash in Android tabview when resetting font property.
This commit is contained in:
committed by
Hristo Deshev
parent
18739f8cd1
commit
0e6c5237b5
@@ -381,6 +381,10 @@ export class TabViewStyler implements style.Styler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static resetFontInternalProperty(v: view.View, nativeValue: any) {
|
private static resetFontInternalProperty(v: view.View, nativeValue: any) {
|
||||||
|
if (!nativeValue) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var tab = <definition.TabView>v;
|
var tab = <definition.TabView>v;
|
||||||
var tabLayout = tab._getAndroidTabView();
|
var tabLayout = tab._getAndroidTabView();
|
||||||
let tabCount = tabLayout.getItemCount();
|
let tabCount = tabLayout.getItemCount();
|
||||||
|
|||||||
Reference in New Issue
Block a user