{ "id": "93200", "key": "TIMOB-9533", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-06-16T00:15:26.000+0000", "created": "2012-06-14T00:55:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-and060112", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:30:09.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "The click on window of the tab, fires click event for Tab and the TabGroup\r\n\r\nRegression. This does not occur on 2.0.2\r\n\r\nSteps to Reproduce:\r\n1. Create app with code below and run app. \r\n2. Tap Tab 1. \r\n3. Tap Tab 2. \r\n3. Tap Window 2. Check console.\r\n\r\nActual: After Step 3, the console shows message from click event of tab and TabGroup\r\n\r\nExpected: There should be no console output on click of window\r\n\r\n{Code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\nwin2.add(label2);\r\n\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\ntabGroup.open();\r\n\r\ntabGroup.addEventListener('click', function(e) {\r\n\tTi.API.info(\"clicked tabgroup\");\r\n});\r\ntab1.addEventListener('click', function(e) {\r\n\tTi.API.info(\"clicked tab1\");\r\n});\r\ntab2.addEventListener('click', function(e) {\r\n\tTi.API.info(\"clicked tab2\");\r\n});\r\n{Code}", "attachment": [], "flagged": false, "summary": "Android: TabGroup: Click on window fires event of Tab and TabGroup", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.0.201206121914\r\nTitanium SDK: 2.1.0.v20120613192252\r\nAndroid Device: Android Tab (V3.2), Android Emulator 2.2\r\nRuntime: v8", "comment": { "comments": [ { "id": "411035", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:30:09.000+0000", "updated": "2017-03-09T23:30:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }