{ "id": "101150", "key": "TIMOB-10916", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14127", "description": "Sprint 2012-19 API", "name": "Sprint 2012-19 API", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14271", "description": "2012 Sprint 19", "name": "2012 Sprint 19", "archived": true, "released": true, "releaseDate": "2012-09-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-18T13:43:39.000+0000", "created": "2012-09-14T04:30:39.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_tabgroup", "qe-review", "qe-testadded", "regression" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-01-23T18:07:57.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": "tabGroup.activeTab returns null instead of object. \r\nThis is regression since the issue does not occur on 2.1.2 GA.\r\n\r\nSteps to reproduce:\r\n1. Create an app using the code below.\r\n2. Launch the app. and check logs.\r\n\r\nExpected:\r\nActivetab should return object.\r\n\r\nActual:\r\nActivetab returns null.\r\n\r\n{code}\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n title: 'Win 1'\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n color: '#000',\r\n style: Ti.UI.iPhone.SystemButtonStyle.BORDERED,\r\n title: 'Set Active Tab 1'\r\n});\r\n \r\nbutton.addEventListener('click', function(e) {\r\n tabGroup.setActiveTab(1);\r\n Ti.API.info('****************** activeTab: ' + tabGroup.activeTab);\r\n});\r\n \r\nwin1.add(button);\r\n \r\nvar tab1 = Ti.UI.createTab({ \r\n icon: 'KS_nav_ui.png',\r\n title: 'Tab 1',\r\n window: win1\r\n});\r\n \r\nvar win2 = Ti.UI.createWindow({\r\n title: 'Win 2'\r\n});\r\n \r\nvar tab2 = Ti.UI.createTab({ \r\n icon: 'KS_nav_views.png',\r\n title: 'Tab 2',\r\n window: win2\r\n});\r\n\r\nvar tabGroup = Ti.UI.createTabGroup({\r\n\t\r\n});\r\n \r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n \r\ntabGroup.open();\r\n \r\nTi.API.info('********************* activeTab: ' + tabGroup.activeTab);{code}", "attachment": [], "flagged": false, "summary": "Android: TabGroup - tabGroup.activeTab returns null instead of object", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.0.0.v20120913145712\r\nStudio:2.1.2.201208301612\r\nOS: OSX 10.8\r\nDevice: Android Emulator", "comment": { "comments": [ { "id": "219146", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue only happens on master. 2_1_X works fine.\r\nIt is probably caused by this [PR|https://github.com/appcelerator/titanium_mobile/pull/2794].\r\nRemoved \"merge-2.1.3\" from Labels.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-15T11:07:39.000+0000", "updated": "2012-09-15T11:29:46.000+0000" }, { "id": "224792", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nSDK:3.0.0.v20121019153308\r\nStudio: 3.0.0.201210141844\r\nDevice: LG-p970(Android 2.2.2)\r\n\r\ntabGroup.activeTab returns object ", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-24T10:15:28.000+0000", "updated": "2012-10-24T10:15:28.000+0000" }, { "id": "283456", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5074\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T05:56:27.000+0000", "updated": "2013-12-10T05:56:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }