{ "id": "114647", "key": "TIMOB-14076", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-12-12T14:31:28.000+0000", "created": "2013-05-20T19:38:04.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "actionbar" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "56893", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172171", "key": "TIMOB-26354", "fields": { "summary": "Android: Refactor TabGroup and introduce new style", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2018-12-12T14:31:32.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": "*Problem*\r\nThe app crashes with \"Unfortunately, app has stopped.\" if actionBar properties are changed at runtime while the current window/tabGroup has navBarHidden set to true.\r\n\r\n*Test case*\r\n{code:javascript}var win = Ti.UI.createTabGroup({\r\n\tnavBarHidden : true\r\n});\r\ntab1 = Ti.UI.createTab({\r\n\ttitle : \"title1\"\r\n});\r\nwin1 = Ti.UI.createWindow();\r\ntab1.window = win1;\r\ntab2 = Ti.UI.createTab({\r\n\ttitle : \"title2\"\r\n});\r\nwin2 = Ti.UI.createWindow();\r\ntab2.window = win2;\r\nwin.addTab(tab1);\r\nwin.addTab(tab2);\r\nwin.addEventListener(\"open\", function() {\r\n\tactionBar = win.getActivity().actionBar;\r\n\tif (actionBar) {\r\n\t\tactionBar.setTitle(\"Test\");\r\n\t}\r\n});\r\nwin.open();{code}", "attachment": [], "flagged": false, "summary": "Android: App crashes when properties of the actionBar are changed while the current window/tabGroup has navBarHidden set to true", "creator": { "name": "olmokramer", "key": "olmokramer", "displayName": "Olmo Kramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "olmokramer", "key": "olmokramer", "displayName": "Olmo Kramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.1.0.GA\r\nAndroid 4.1.2", "closedSprints": [ { "id": 1103, "state": "closed", "name": "2018 Sprint 25", "startDate": "2018-12-02T16:29:21.531Z", "endDate": "2018-12-16T16:29:00.000Z", "completeDate": "2018-12-15T02:33:24.870Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "252946", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Olmo,\r\n\r\nPlease provide a simple reproducible test case that we can drop into an app.js and run to reproduce the crash.\r\n\r\nResolving as \"Needs more info\" until this is provided.\r\n\r\nThanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-20T22:24:20.000+0000", "updated": "2013-05-20T22:24:20.000+0000" }, { "id": "252966", "author": { "name": "olmokramer", "key": "olmokramer", "displayName": "Olmo Kramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I updated the information, with a script i think should crash.", "updateAuthor": { "name": "olmokramer", "key": "olmokramer", "displayName": "Olmo Kramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-20T22:53:15.000+0000", "updated": "2013-05-20T22:53:15.000+0000" }, { "id": "255267", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Android 4.1.2 x86 emulator with Ti SDK 3.1 GA and 3.2 CI.\n\nHowever, the app crashes regardless of the navBarHidden property being true or false.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-31T21:22:12.000+0000", "updated": "2013-05-31T21:22:12.000+0000" }, { "id": "255398", "author": { "name": "olmokramer", "key": "olmokramer", "displayName": "Olmo Kramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Strange... I re-tested it, and I am able to reproduce my problem with test case above. The app doesn't crash when i set navBarHidden to false, or when i don't set it at all. Only when it is set to true.\r\nAlso, I forgot to mention that i have set these values in my tiapp.xml manifest:\r\n{code:xml}\r\n 16\r\n \r\n{code}\r\nbut values like these are necessary for the actionBar, so probably you also set those values to something like this.", "updateAuthor": { "name": "olmokramer", "key": "olmokramer", "displayName": "Olmo Kramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-01T16:41:06.000+0000", "updated": "2013-06-01T16:42:07.000+0000" }, { "id": "442352", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "{{navBarHidden}} has been dropped after 3.3.0. Tested with 7.0.0.GA the issue can't be reproduced. Closing as such.", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-10-05T15:01:10.000+0000", "updated": "2018-10-05T15:01:10.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }