{ "id": "133985", "key": "TIMOB-17440", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-05T19:42:38.000+0000", "created": "2014-07-31T17:51:14.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "module_tabgroup", "qe-manualtest" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "39467", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "129733", "key": "TIMOB-16889", "fields": { "summary": "Android: Adding 'resume' event to Ti.Android.currentActivity does not work with SDK >= 3.2.0", "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": "39497", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "133687", "key": "TIDOC-1788", "fields": { "summary": "Android: Add new properties to activity", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-18T17:30:20.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" } ], "attachment": [ { "id": "50537", "filename": "Logs.png", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-08-18T17:09:13.000+0000", "size": 44172, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: support setting properties to the tabgroup activity before tabgroup opens", "creator": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 154, "state": "closed", "name": "2014 Sprint 15 SDK", "startDate": "2014-07-21T21:56:31.515Z", "endDate": "2014-08-02T00:00:00.000Z", "completeDate": "2014-08-04T21:03:51.067Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "316709", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win1 = Titanium.UI.createWindow({\r\n\ttitle : 'Tab 1',\r\n\tbackgroundColor : '#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({\r\n\ticon : 'KS_nav_views.png',\r\n\ttitle : 'Tab 1',\r\n\twindow : win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor : '#999',\r\n\ttext : 'Click to open window',\r\n\tfont : {\r\n\t\tfontSize : 20,\r\n\t\tfontFamily : 'Helvetica Neue'\r\n\t},\r\n\ttextAlign : 'center',\r\n\twidth : 'auto'\r\n});\r\n\r\nfunction openWin() {\r\n\tvar childWin = Ti.UI.createWindow({});\r\n\tchildWin.addEventListener('open', function(){\r\n\t\tTi.API.info('childWin open event fired: childWin.activity = ' + childWin.activity);\r\n\t});\r\n\tchildWin.activity.onCreateOptionsMenu = function(e) {\r\n\t\tTi.API.info('childWin onCreateOptionsMenu called');\r\n\t};\r\n\tchildWin.activity.onStart = function() {\r\n\t\tTi.API.info('childWin onStart called');\r\n\t};\r\n\tchildWin.activity.onRestart = function() {\r\n\t\tTi.API.info('childWin onRestart called');\r\n\t};\r\n\tchildWin.activity.onCreate = function() {\r\n\t\tTi.API.info('childWin onCreate called');\r\n\t};\r\n\tchildWin.activity.onResume = function() {\r\n\t\tTi.API.info('childWin onResume called');\r\n\t};\r\n\tchildWin.activity.onPause = function() {\r\n\t\tTi.API.info('childWin onPause called');\r\n\t};\r\n\tchildWin.activity.onStop = function() {\r\n\t\tTi.API.info('childWin onStop called');\r\n\t};\r\n\tchildWin.activity.onDestroy = function() {\r\n\t\tTi.API.info('childWin onDestroy called');\r\n\t};\r\n\tchildWin.open();\r\n}\r\n\r\nlabel1.addEventListener('click', openWin);\r\nwin1.add(label1);\r\n\r\nvar win2 = Titanium.UI.createWindow({\r\n\ttitle : 'Tab 2',\r\n\tbackgroundColor : '#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({\r\n\ticon : 'KS_nav_ui.png',\r\n\ttitle : 'Tab 2',\r\n\twindow : win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor : '#999',\r\n\ttext : 'I am Window 2',\r\n\tfont : {\r\n\t\tfontSize : 20,\r\n\t\tfontFamily : 'Helvetica Neue'\r\n\t},\r\n\ttextAlign : 'center',\r\n\twidth : 'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n\r\ntabGroup.addEventListener('open', function(){\r\n\tTi.API.info('tabGroup open event fired: tabGroup.activity = ' + tabGroup.activity);\r\n});\r\ntabGroup.activity.onCreateOptionsMenu = function(e) {\r\n\tTi.API.info('tabGroup onCreateOptionsMenu called');\r\n};\r\ntabGroup.activity.onStart = function() {\r\n\tTi.API.info('tabGroup onStart called');\r\n};\r\ntabGroup.activity.onRestart = function() {\r\n\tTi.API.info('tabGroup onRestart called');\r\n};\r\ntabGroup.activity.onCreate = function() {\r\n\tTi.API.info('tabGroup onCreate called');\r\n};\r\ntabGroup.activity.onResume = function() {\r\n\tTi.API.info('tabGroup onResume called');\r\n};\r\ntabGroup.activity.onPause = function() {\r\n\tTi.API.info('tabGroup onPause called');\r\n};\r\ntabGroup.activity.onStop = function() {\r\n\tTi.API.info('tabGroup onStop called');\r\n};\r\ntabGroup.activity.onDestroy = function() {\r\n\tTi.API.info('tabGroup onDestroy called');\r\n};\r\n\r\ntabGroup.open(); \r\n{code}\r\nFor FR:\r\n1. Run the above test case. Should see logs from callbacks and event listeners.\r\n2. Run KS for sanity check.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-01T23:16:33.000+0000", "updated": "2014-08-01T23:16:33.000+0000" }, { "id": "316710", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/5945", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-01T23:18:42.000+0000", "updated": "2014-08-01T23:18:42.000+0000" }, { "id": "319116", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.9.4\r\nAppcelerator Studio, build: 3.3.0.201407111535\r\nTitanium SDK build: 3.4.0.v20140813022514\r\nTitanium CLI, build: 3.3.0\r\nAlloy: 1.4.1\r\nAndroid Simulator 4.4.2\r\nAndroid Device Note 2 (4.3)\r\n\r\nRan above code, the console shows logs for both the child window and main window callbacks and event listeners, see attached screenshot for logs. Ran KS as a second check.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-08-18T17:07:37.000+0000", "updated": "2014-08-18T17:10:29.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }