{ "id": "120668", "key": "AC-1757", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-01-06T00:09:44.000+0000", "created": "2013-10-01T15:27:44.000+0000", "labels": [ "Android", "actionbar" ], "versions": [], "issuelinks": [], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:38.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h2. Problem\r\n\r\nSince 3.1.2.GA i'm unable to add item to the actionbar on a tabGroup.\r\n\r\nI've joined code to reproduce.\r\n\r\nThis code work with 3.1.1.GA.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar self = Ti.UI.createTabGroup({\r\n\tfullscreen : true,\r\n\ttitle : 'Action Bar'\r\n});\r\n\r\n//create app tabs\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\ttitle : 'win1'\r\n});\r\n\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n\ttitle : 'tab1',\r\n\twindow : win1\r\n});\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n\ttitle : 'win1'\r\n});\r\n\r\nvar tab2 = Ti.UI.createTab({\r\n\ttitle : 'tab2',\r\n\twindow : win2\r\n});\r\n\r\nself.addTab(tab1);\r\nself.addTab(tab2);\r\n\r\nself.open();\r\n\r\ntab1.window.addEventListener('focus', function(){\r\n\ttab1.window.activity.onCreateOptionsMenu = function(e) {\r\n\t\tvar menu = e.menu;\r\n\t\tvar aboutMenuItem = menu.add({\r\n\t\t\ttitle : \"About\",\r\n\t\t\tshowAsAction : Ti.Android.SHOW_AS_ACTION_IF_ROOM\r\n\t\t});\r\n\t\taboutMenuItem.addEventListener(\"click\", function(e) {\r\n\t\t\talert(\"About Item Clicked!\");\r\n\t\t});\r\n\t\tvar settingsMenuItem = menu.add({\r\n\t\t\ttitle : \"Settings\",\r\n\t\t\tshowAsAction : Ti.Android.SHOW_AS_ACTION_IF_ROOM\r\n\t\t});\r\n\t\tsettingsMenuItem.addEventListener(\"click\", function(e) {\r\n\t\t\talert(\"Settings Item Clicked!\");\r\n\t\t});\r\n\t};\r\n});\r\n\r\n{code}\r\n\r\n{code:lang=xml|title=tiapp.xml}\r\n\r\n\r\n com.test.actionbar\r\n ActionBarSampleTi\r\n 1.0\r\n _\r\n http://\r\n not specified\r\n _\r\n appicon.png\r\n false\r\n false\r\n default\r\n false\r\n false\r\n false\r\n false\r\n 99a04c4e-689f-4a4c-9870-a0843d7f21c0\r\n system\r\n \r\n \r\n Ti.UI.PORTRAIT\r\n \r\n \r\n Ti.UI.PORTRAIT\r\n Ti.UI.UPSIDE_PORTRAIT\r\n Ti.UI.LANDSCAPE_LEFT\r\n Ti.UI.LANDSCAPE_RIGHT\r\n \r\n \r\n \r\n 16\r\n \r\n \r\n \r\n \r\n \r\n \r\n false\r\n false\r\n true\r\n false\r\n false\r\n false\r\n \r\n 3.1.3.GA\r\n test\r\n\r\n\r\n{code}", "attachment": [ { "id": "42878", "filename": "app.js", "author": { "name": "remiburtin", "key": "remiburtin", "displayName": "Rémi Burtin", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-01T15:27:44.000+0000", "size": 954, "mimeType": "text/javascript" }, { "id": "44799", "filename": "Screenshot 2013-12-24 11.48.59.png", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-12-24T07:09:53.000+0000", "size": 28204, "mimeType": "image/png" }, { "id": "42879", "filename": "tiapp.xml", "author": { "name": "remiburtin", "key": "remiburtin", "displayName": "Rémi Burtin", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-01T15:27:44.000+0000", "size": 1900, "mimeType": "text/xml" } ], "flagged": false, "summary": "Unable to add item to the actionbar with tabGroup", "creator": { "name": "remiburtin", "key": "remiburtin", "displayName": "Rémi Burtin", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "remiburtin", "key": "remiburtin", "displayName": "Rémi Burtin", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium API : 3.1.3.GA", "comment": { "comments": [ { "id": "276933", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello Rémi Burtin,\n\nPLease check my following code for Actionbar in TabGroup.\n\nh5. My test Environment follows:\n\nTi SDK 3.1.3.GA\nAndroid SDK 4.0.0\n\nh5. Test Code\n\n{code:title=app.js}\nvar self = Ti.UI.createTabGroup({\n\tfullscreen : true,\n\ttitle : 'Action Bar'\n});\n \nvar win1 = Ti.UI.createWindow({\n\ttitle : 'win1'\n});\n\nvar tab1 = Ti.UI.createTab({\n\ttitle : 'tab1',\n\twindow : win1\n});\n\nvar win2 = Ti.UI.createWindow({\n\ttitle : 'win1'\n});\n\nvar tab2 = Ti.UI.createTab({\n\ttitle : 'tab2',\n\twindow : win2\n});\n\nself.addTab(tab1);\nself.addTab(tab2);\n\nself.open();\n\nself.addEventListener('open', function(e) {\n\tvar activity = self.getActivity();\n\n\tactivity.onCreateOptionsMenu = function(e) {\n\t\tvar menu = e.menu;\n\n\t\t// Menu Item 1\n\t\tvar menuItem1 = menu.add({\n\t\t\ttitle : \"Item 1\",\n\t\t\ticon : \"images/action_about.png\",\n\t\t\tshowAsAction : Ti.Android.SHOW_AS_ACTION_ALWAYS\n\t\t});\n\t\tmenuItem1.addEventListener(\"click\", function(e) {\n\t\t\talert(\"I was clicked 1\");\n\t\t});\n\n\t\t// Menu Item 2\n\t\tvar menuItem2 = menu.add({\n\t\t\ttitle : \"Item 2\",\n\t\t\ticon : \"images/action_settings.png\",\n\t\t\tshowAsAction : Ti.Android.SHOW_AS_ACTION_ALWAYS\n\t\t});\n\t\tmenuItem2.addEventListener(\"click\", function(e) {\n\t\t\talert(\"I was clicked 2\");\n\t\t});\n\t};\n});\n\n{code}\n\n{code:title=tiapp.xml}\n\n\n com.stendapps.teststatusbar\n QnA\n 1.0\n stefano\n http://\n not specified\n 2013 by stefano\n appicon.png\n false\n false\n default\n false\n true\n false\n true\n 056b02f9-512f-4a40-b1b6-fe7412fb2590\n system\n 410842299029388\n \n \n Ti.UI.PORTRAIT\n \n \n Ti.UI.PORTRAIT\n Ti.UI.UPSIDE_PORTRAIT\n Ti.UI.LANDSCAPE_LEFT\n Ti.UI.LANDSCAPE_RIGHT\n \n \n \n \n \n \t\n \t\n \t\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n true\n true\n \n default\n \n \n ti.map\n \n \n true\n false\n true\n true\n true\n false\n \n 3.1.3.GA\n development\n\n\n{code}\n\nThanks ", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-10-27T18:24:47.000+0000", "updated": "2013-10-27T18:24:47.000+0000" }, { "id": "286691", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as we have not been able to reproduce this issue. Please let us know if the issue persists with 3.2.0 GA release and we would be happy to reopen the ticket and investigate it further.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-06T00:09:44.000+0000", "updated": "2014-01-06T00:09:44.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }