Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13672] Android: setting backgroundSelectedImage on tab results in crash

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-05-14T00:19:06.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 10 API, 2013 Sprint 10, Release 3.1.1, Release 3.2.0
ComponentsAndroid
Labelsqe-closed-3.1.1, regression, supportTeam
ReporterBetty Tran
AssigneePing Wang
Created2013-04-25T14:38:30.000+0000
Updated2014-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

FileDateSize
tabcrash.txt2013-04-25T14:38:30.000+00007277

Comments

  1. Ping Wang 2013-05-09

    PR: https://github.com/appcelerator/titanium_mobile/pull/4239 For FR, please run the above test case and the test case in TIMOB-12747.
  2. Allen Yeung 2013-05-14

    3.1.1: https://github.com/appcelerator/titanium_mobile/pull/4261
  3. Eric Merriman 2013-05-29

    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

JSON Source