{ "id": "80072", "key": "TIMOB-5227", "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": "15499", "description": "2013 Sprint 13 API", "name": "2013 Sprint 13 API", "archived": true, "released": true, "releaseDate": "2013-07-01" }, { "id": "15111", "description": "2013 Sprint 13", "name": "2013 Sprint 13", "archived": true, "released": true, "releaseDate": "2013-07-01" } ], "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": "2013-04-26T08:46:09.000+0000", "created": "2011-09-07T13:42:17.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T18:47:05.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": "h3.Problem\r\nWhile opening second window and putting the exitOnClose: true property together with navBarHidden, make the application not getting closed while pressing the Back Hardware button.\r\n\r\nh3.Reproducible Steps\r\n1. Execute the sample code\r\n2. Press the \"Press Me\" button\r\n3. Press the Back button on your Android device (should exit the application, but it doesn't)\r\n\r\nh3.Workaround \r\nRemove navBarHidden properties from all the windows or close all the previous opened windows.\r\n\r\nh3.Sample Code\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Win1',\r\n backgroundColor:'#fff',\r\n exitOnClose:true,\r\n navBarHidden:true\r\n});\r\n\r\n\r\nvar but1 = Titanium.UI.createButton({title:'Press me', width:'auto'});\r\n\r\nvar but4 = Titanium.UI.createButton({title:'LogOut', width:'auto'});\r\n\r\n\r\nvar win3 = Titanium.UI.createWindow({ \r\n title:'Win2',\r\n backgroundColor:'#fff',\r\n exitOnClose:true,\r\n navBarHidden:true\r\n});\r\n\r\nwin1.add(but1);\r\n\r\nbut1.addEventListener(\"click\",function(e){\r\n win3.open();\r\n});\r\n\r\nwin1.open();\r\n{code}\r\n\r\nh3.Associated HelpDesk Ticket\r\nhttp://appc.me/a/APP-548793", "attachment": [], "flagged": false, "summary": "Android: navBarHidden blocks exitOnClose property", "creator": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Simulator, Android 2.3.3", "comment": { "comments": [ { "id": "219690", "author": { "name": "vale4674", "key": "vale4674", "displayName": "Dino Bartosak", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same problem happens to me. Any ideas?", "updateAuthor": { "name": "vale4674", "key": "vale4674", "displayName": "Dino Bartosak", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-19T06:21:24.000+0000", "updated": "2012-09-19T06:21:24.000+0000" }, { "id": "249106", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "cannot reproduce\r\n\r\nTested with\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0\r\nAndroid Emulator: Android SDK version: 2.2 ", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-26T08:46:09.000+0000", "updated": "2013-04-26T08:46:09.000+0000" }, { "id": "413601", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:47:05.000+0000", "updated": "2017-03-17T18:47:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }