[TIMOB-12499] BlackBerry : The default studio app with tabgroup crashes only if we have the setBackgroundColor present.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-08-08T17:42:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 03 BB |
Components | BlackBerry |
Labels | KitchenSink, qe-manualtest, sdk-bb |
Reporter | Lokesh Choudhary |
Assignee | Josh Roesslein |
Created | 2013-01-30T21:52:35.000+0000 |
Updated | 2014-08-08T17:42:25.000+0000 |
Description
Description:
1.Create the default app in studio for BB
Titanium.UI.setBackgroundColor('#000');
var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#000'
});
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win1
});
var label1 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 1',
font:{fontSize:20},
textAlign:'center',
width:'auto'
});
win1.add(label1);
var win2 = Titanium.UI.createWindow({
title:'Tab 2',
backgroundColor:'#fff'
});
var tab2 = Titanium.UI.createTab({
icon:'KS_nav_ui.png',
title:'Tab 2',
window:win2
});
var label2 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 2',
font:{fontSize:20},
textAlign:'center',
width:'auto'
});
win2.add(label2);
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
// open tab group
tabGroup.open();
2.Run it on simulator or device
Actual result:
1.The app crashes after the blackberry splash screen
Now comment out: Titanium.UI.setBackgroundColor('#000') & run it again on simulator or device
3.The app runs fine
Expected results:
1.The app should run with out any problems
UI.setBackgroundColor() is not implemented currently on BlackBerry.
Added a no-op method to allow samples to run without JS errors. Created a feature ticket to explore supporting this API in the future.
Verified the fix with no-op added for the backgroungcolor property & the default app runs fine Will have to verify this again once the property has been implemented for BB Environment: Environment: Ti Studio : 3.1.0.201301231719 Ti BB SDK : 3.1.0.v20130202000009 Mac OSX : 10.8.2 win 7 64 bit Win 8 BB simulator : 10.0.9.386