ui-material-components
ui-material-components copied to clipboard
[Tabs] [Android]: App gets crashed when it is running in background and Phone font size is changed
Transfer from core Original reporter @rmn81
Describe the bug App gets crashed when it is running in background and Phone font size is changed. It is happening only when selectedItemColor property is applied on TabStrip. It is happing on android not sure about iOS.
Error: `[ba7898cd]: An uncaught Exception occurred on "main" thread. Calling js method onStart failed TypeError: Cannot read property 'setTextColor' of null
StackTrace:
Tabs._setItemColor(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/ui/tabs/tabs.js:608:42)
at (file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/ui/tabs/tabs.js:477:19)
at Tabs.setTabStripItems(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/ui/tabs/tabs.js:474:15)
at Tabs.
Sample project Playground
Additional context
@NathanWalker i cant reproduce it here on api 29. I did a release with fixes, Could you test and report what version it crashes on?
@farfromrefug Tested on API 29. it is still breaking.
Versions: nativescript: NS7(7.0.11) @nativescript/core: 7.1.4 @nativescript/android: 7.0.1
@rmn81 what plugin version? That s what i need to know
@farfromrefug I am not sure for which plugin you want to know the version. Below is the content of my package.json(you can also check the Playground Sample)
{
"name": "@nativescript/template-hello-world-ts",
"main": "app.js",
"version": "7.0.6",
"author": "NativeScript Team [email protected]",
"description": "NativeScript Application",
"license": "SEE LICENSE IN
@rmn81 i dont understand you dont even use @nativescript-community/ui-material-tabs ? it might.mean that issue already existed in N Tab component ? @NathanWalker I am lost here. (though I fixed the issue in latest release)
@NathanWalker this one should be fixed