{ "id": "83433", "key": "TIMOB-6486", "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": [ { "id": "12089", "description": "", "name": "Sprint 2011-49", "archived": true, "released": true, "releaseDate": "2011-12-12" }, { "id": "12571", "description": "CI for 1_7_X", "name": "Release 1.7.6", "archived": true, "released": false }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14166", "description": "2012 Sprint 21 Core", "name": "2012 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "15711", "description": "2013 Sprint 24", "name": "2013 Sprint 24", "archived": true, "released": true, "releaseDate": "2013-11-29" }, { "id": "15712", "description": "2013 Sprint 24 API", "name": "2013 Sprint 24 API", "archived": true, "released": true, "releaseDate": "2013-11-29" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-23T00:56:52.000+0000", "created": "2011-12-06T12:49:43.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "merge-1.7.6", "module_tabgroup", "qe-and100112", "qe-closed-3.2.0", "qe-testadded", "regression" ], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "31687", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "119733", "key": "TIMOB-15108", "fields": { "summary": "iOS: 'click' events are not fired for TabGroup and Tabs", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "14143", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "65282", "key": "TIMOB-4063", "fields": { "summary": "Android: TabGroup: most events not do not fire (only focus works)", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "14359", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "61949", "key": "TIMOB-1317", "fields": { "summary": "Android: tabGroup tab click event not triggered by stick nav on main tab of KS", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-27T17:56:53.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": "h3.Problem\r\nThe \"click\" event never gets triggered on the tabs.\r\n\r\nh3.Reproducible Steps\r\n1. Use the example code from above\r\n2. Click on the tabs\r\n\r\nh3.Sample Code\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\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\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\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\nvar view = Ti.UI.createView({\r\n\ttop: 10,\r\n\tleft: 10,\r\n\twidth: 200,\r\n\theigh: 200,\r\n\tbackgroundColor: 'red'\r\n});\r\n\r\nvar view2 = Ti.UI.createView({\r\n\ttop: 20,\r\n\tleft: 20,\r\n\twidth: 100,\r\n\theigh: 100,\r\n\tbackgroundColor: 'green'\r\n});\r\nview.add(view2);\r\n\r\n\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n\r\ntabGroup.addEventListener('click', function(e) {\r\n\tTi.API.info(\"clicked tabgroup\");\r\n});\r\n\r\n// tabs don't fire 'click' events\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\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Tabs don't fire click events", "creator": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Simulator, Android 2.3", "closedSprints": [ { "id": 23, "state": "closed", "name": "2013 Sprint 24", "startDate": "2013-11-19T19:13:36.746Z", "endDate": "2013-12-01T19:13:36.746Z", "completeDate": "2013-12-03T18:22:18.452Z" } ], "comment": { "comments": [ { "id": "175205", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.1.v20111207090257 v8/rhino on\r\nGalaxy 10.1 (3.1)\r\nDroid 1 (2.2.2)\r\nDroid 3 (2.3.4)\r\nEmulator (4.0)", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-07T12:55:32.000+0000", "updated": "2011-12-07T12:55:32.000+0000" }, { "id": "175626", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on Ti Studio 1.0.7.201112080131\r\n
Ti Mob SDK 1.8.0.1.v20111209102124 v8/rhino\r\n
OSX Lion\r\nNexus S OS 2.3.6\r\n\r\nExpected behavior of click events firing is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-09T15:56:21.000+0000", "updated": "2011-12-09T15:56:21.000+0000" }, { "id": "177915", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added label qe-testadded.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-03T17:43:33.000+0000", "updated": "2012-01-03T17:43:33.000+0000" }, { "id": "222927", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening the bug, since tabs do not fire click events.\r\nAdding \"regression\" label, the behavior does not occur on 2.1.3.\r\nTested on:\r\nOS: Mac OS X Lion 10.7.4\r\nTitanium Studio, build: 3.0.0.201210090117\r\nTitanium SDK, build: 3.0.0.v20121009111437\r\nDevice: Samsung Galaxy III (4.0.4)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-10T17:16:59.000+0000", "updated": "2012-10-10T17:16:59.000+0000" }, { "id": "223188", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3181\n\nFor testing, run the code below and try the following:\n\n{code}\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\nTitanium.UI.setBackgroundColor('#000');\n \n// create tab group\nvar tabGroup = Titanium.UI.createTabGroup();\n \n \n \n//\n// create base UI tab and root window\n//\nvar win1 = Titanium.UI.createWindow({ \n title:'Tab 1',\n backgroundColor:'#fff'\n});\nvar tab1 = Titanium.UI.createTab({ \n icon:'KS_nav_views.png',\n title:'Tab 1',\n window:win1\n});\n \nvar label1 = Titanium.UI.createLabel({\n color:'#999',\n text:'I am Window 1',\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\n textAlign:'center',\n width:'auto'\n});\n \nwin1.add(label1);\n \n//\n// create controls tab and root window\n//\nvar win2 = Titanium.UI.createWindow({ \n title:'Tab 2',\n backgroundColor:'#fff'\n});\nvar tab2 = Titanium.UI.createTab({ \n icon:'KS_nav_ui.png',\n title:'Tab 2',\n window:win2\n});\n \nvar view = Ti.UI.createView({\n top: 10,\n left: 10,\n width: 200,\n heigh: 200,\n backgroundColor: 'red'\n});\n \nvar view2 = Ti.UI.createView({\n top: 20,\n left: 20,\n width: 100,\n heigh: 100,\n backgroundColor: 'green'\n});\nview.add(view2);\n \n \ntabGroup.addTab(tab1); \ntabGroup.addTab(tab2); \n \n \n// open tab group\ntabGroup.open();\n \ntabGroup.addEventListener('click', function(e) {\n Ti.API.info(\"clicked tabgroup\");\n});\n \n// tabs don't fire 'click' events\ntab1.addEventListener('click', function(e) {\n Ti.API.info(\"clicked tab1\");\n});\ntab1.addEventListener('blur', function(e) {\n Ti.API.info(\"blur tab1\");\n});\ntab1.addEventListener('focus', function(e) {\n Ti.API.info(\"focus tab1\");\n});\ntab2.addEventListener('click', function(e) {\n Ti.API.info(\"clicked tab2\");\n});\ntab2.addEventListener('blur', function(e) {\n Ti.API.info(\"blur tab2\");\n});\ntab2.addEventListener('focus', function(e) {\n Ti.API.info(\"focus tab2\");\n});\n{code}\n\n1. Click on tab 2\n2. Click on tab 1\n\nAfter startup, you should get:\n{code}\nI/TiAPI ( 7861): focus tab1\n{code}\nAfter clicking on tab 2, you should get:\n{code}\nI/TiAPI ( 7861): blur tab1\nI/TiAPI ( 7861): clicked tab2\nI/TiAPI ( 7861): focus tab2\nI/TiAPI ( 7861): clicked tabgroup\n{code}\nAfter clicking on tab 1, you should get:\n{code}\nI/TiAPI ( 7861): blur tab2\nI/TiAPI ( 7861): clicked tab1\nI/TiAPI ( 7861): focus tab1\nI/TiAPI ( 7861): clicked tabgroup\n{code}", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-11T22:02:47.000+0000", "updated": "2012-10-11T22:02:47.000+0000" }, { "id": "223292", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "PRs for 3.0.0 and master have been merged.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-10-12T19:50:37.000+0000", "updated": "2012-10-12T19:50:37.000+0000" }, { "id": "223991", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Verified and tested on:\r\nTitanium Studio, build: 3.0.0.201210151149\r\nTitanium SDK, builds: 3.0.0.v20121017100120; 3.1.0.v20121017102121\r\nDevice: Nexus 7 (4.1.1)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-17T17:39:18.000+0000", "updated": "2012-10-17T18:41:37.000+0000" }, { "id": "224021", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to make changes in comment", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-17T18:41:21.000+0000", "updated": "2012-10-17T18:41:21.000+0000" }, { "id": "224162", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue also occuring on iOS (checked on iPad iOS 6.0 , iPad iOS 5.1)\nTitanium SDK: 3.0.0.v20121015174610\nTitanium  Studio: 2.1.3.201209101847\nNote to QE - Please verfiy for iOS as well while closing.", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-18T12:11:03.000+0000", "updated": "2012-10-18T12:11:03.000+0000" }, { "id": "280698", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I am able to reproduce this issue.\r\n\r\nUsing the Environment:\r\nDevice : Google Nexus 7, Android Version: 4.2.1\r\nSDK: 3.2.0.v20131121163252\r\nCLI version : 3.2.0-alpha\r\nOS : MAC OSX 10.9\r\nAlloy : 1.3.0\r\nAppcelerator Studio, build: 3.2.0.201311200357\r\nXCode : 5.0.2", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-22T05:23:12.000+0000", "updated": "2013-11-22T05:23:12.000+0000" }, { "id": "280769", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The test case works fine for TabHost tabgroup for targetSdkVersion<11 but does not work for ActionBar tabgroup for targetSdkVersion>=11. This is not a regression. Tested with 3.1.1.GA, it does not work for ActionBar tabgroup either.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-22T19:13:07.000+0000", "updated": "2013-11-22T19:15:51.000+0000" }, { "id": "280809", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-22T22:57:58.000+0000", "updated": "2013-11-22T22:57:58.000+0000" }, { "id": "281665", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nMac OSX 10.9 Mavericks\nTitanium Studio, build: 3.2.0.201311262027\nTitanium SDK, build: 3.2.0.v20131126144841\nCLI: 3.2.0-beta\nAlloy: 1.3.0-beta\n\nAndroid Devices:\nGalaxy SIII (4.0.4) - Working\nXperia S (4.1.2) - Working\nGalaxy Nexus (4.2.2) - Working\n\nTabs fire click events, blur events, and focus events as expected.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-27T17:56:31.000+0000", "updated": "2013-11-27T17:56:31.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }