[TIMOB-13672] Android: setting backgroundSelectedImage on tab results in crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-05-14T00:19:06.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 10 API, 2013 Sprint 10, Release 3.1.1, Release 3.2.0 |
Components | Android |
Labels | qe-closed-3.1.1, regression, supportTeam |
Reporter | Betty Tran |
Assignee | Ping Wang |
Created | 2013-04-25T14:38:30.000+0000 |
Updated | 2014-06-19T12:42:47.000+0000 |
Description
Description
Setting the backgroundSelectedImage on a tab causes the application to crash. It does not crash when built with the 3.0.2 SDK.Code to reproduce
var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
backgroundSelectedColor: "#544a47",
backgroundSelectedImage: '<path to image>',
window:win1
});
tabGroup.addTab(tab1);
tabGroup.open();
Please also see the attached crash log.
Attachments
File | Date | Size |
---|---|---|
tabcrash.txt | 2013-04-25T14:38:30.000+0000 | 7277 |
PR: https://github.com/appcelerator/titanium_mobile/pull/4239 For FR, please run the above test case and the test case in TIMOB-12747.
3.1.1: https://github.com/appcelerator/titanium_mobile/pull/4261
This no longer crashes, but this property is inherited from view and setting it doesn't seem to change the appearance of the tab. Verified with: Mac OS 10.8.3 Safari: 6.0.4 Xcode 4.6.2 CLI: 3.1.1-alpha titanium-code-processor: 1.0.1-alpha Alloy: 1.1.3-alpha Appcelerator Studio, build: 3.1.1.201305282349 Titanium SDK version 3.1.1.v20130524180421