{ "id": "105105", "key": "TIMOB-11796", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14788", "description": "2012 Sprint 26 Core", "name": "2012 Sprint 26 Core", "archived": true, "released": true, "releaseDate": "2012-12-31" }, { "id": "14786", "description": "2012 Sprint 26", "name": "2012 Sprint 26", "archived": true, "released": true, "releaseDate": "2012-12-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-15T22:45:20.000+0000", "created": "2012-11-15T23:58:31.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_actionbar", "qe-automation", "qe-port", "triage" ], "versions": [], "issuelinks": [ { "id": "22902", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "104947", "key": "TIMOB-11766", "fields": { "summary": "ActionBar issues with TabGroup", "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": "22884", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "104048", "key": "TIMOB-11601", "fields": { "summary": "Android: Expose ActionBar methods", "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 } } } }, { "id": "24688", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "108102", "key": "TIMOB-12338", "fields": { "summary": "Backport TIMOB-11796 to 3.0.2", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-15T22:45: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" } ], "description": "It appears that the action bar is not getting added to the window activity when you create a tab group. For example, this code works if {{win}} is a standard window:\r\n\r\n{code}\r\nwin.addEventListener('open', function() {\r\n var actionBar = win.activity.actionBar;\r\n actionBar.title = 'TITANIUM APP';\r\n});\r\n{code}\r\n\r\nHowever, if {{win}} is a tab window, it fails because actionBar is undefined.\r\n", "attachment": [], "flagged": false, "summary": "Android: ActionBar not getting set on Tab windows", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "227646", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "This ticket is either related to, or a duplicate of, TIMOB-11766\r\n\r\nI filed my bug because the TabGroup is actually a Window under the covers, and the tabs' \"windows\" are actually views. Following that logic, I found TabGroup.activity.actionBar", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2012-11-16T05:04:19.000+0000", "updated": "2012-11-16T05:04:19.000+0000" }, { "id": "227649", "author": { "name": "igorsantos07", "key": "igorsantos07", "displayName": "Igor Santos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "this is, indeed, a subset of your bug.\r\nWhy don't you relate it too to TIMOB-11601?", "updateAuthor": { "name": "igorsantos07", "key": "igorsantos07", "displayName": "Igor Santos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2012-11-16T05:20:39.000+0000", "updated": "2012-11-16T05:20:39.000+0000" }, { "id": "227911", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Shannon, I'm not able to duplicate you results on TabGroup.activity.actionBar. Running against both 3.0.X and master, when I try to access TabGroup.activity, it's undefined. I tried waiting for the tab group open event or the window open event, no go. \n\nWhat code are you using to access that tab group's activity? And what build are you running against?\n", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-19T20:30:03.000+0000", "updated": "2012-11-19T20:30:03.000+0000" }, { "id": "227938", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "NM. I figured out that TabGroup.getActivity() was working, but it wasn't properly exposed as a property, so TabGroup.activity was showing up as undefined.\n\nSo, if you use getActivity(), you can access the action bar _and_ set action items. If you use window.activity on a tab group, you can only set action items. A little weird.\n\nAt a minimum, we should expose TabGroup.activity.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-19T23:22:06.000+0000", "updated": "2012-11-19T23:22:06.000+0000" }, { "id": "229893", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test case:\n\n{code}\nTitanium.UI.setBackgroundColor('#000');\n\n// create tab group\nvar tabGroup = Titanium.UI.createTabGroup();\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\tcolor:'#999',\n\ttext:'I am Window 1',\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\n\ttextAlign:'center',\n\twidth:'auto'\n});\n\nwin1.add(label1);\n\ntabGroup.addTab(tab1); \n\n// open tab group\ntabGroup.open();\n\ntabGroup.addEventListener('open', function(){\n\tvar activity = tabGroup.activity;\n\tif (activity) {\n\t\tTi.API.info('----------------------successfully grabbed activity');\n\t} else {\n\t\tTi.API.info('----------------------didnt grab activity');\t\n\t}\n});\n{code}\n\n1. Run the code above\n2. Look at logcat and you should see the success message", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T19:17:03.000+0000", "updated": "2012-12-04T19:17:03.000+0000" }, { "id": "229903", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3520", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T19:36:43.000+0000", "updated": "2012-12-04T19:36:43.000+0000" }, { "id": "231192", "author": { "name": "tkeunebr", "key": "tkeunebr", "displayName": "Thomas Keunebroek", "active": true, "timeZone": "Europe/Berlin" }, "body": "Following this issue, it's a really annoying one.", "updateAuthor": { "name": "tkeunebr", "key": "tkeunebr", "displayName": "Thomas Keunebroek", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-12-13T10:42:01.000+0000", "updated": "2012-12-13T10:42:01.000+0000" }, { "id": "235038", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTitanium SDK: 3.1.0.v20130114171802\r\nTitanium  Studio:3.0.1.201212181159\r\nDevice: Samsung GALAXY Note (2.3.6)", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-21T00:50:23.000+0000", "updated": "2013-01-21T00:50:23.000+0000" }, { "id": "235266", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to edit fixVersion", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-21T22:14:23.000+0000", "updated": "2013-01-21T22:14:23.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }