{ "id": "92987", "key": "TIMOB-9462", "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" } ], "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-02-28T11:29:26.000+0000", "created": "2012-06-08T04:46:36.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "qe-and060112" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T18:45:49.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 is not a regression.This issue exists as far as 1.8.2.\r\n\r\nRefer the code below\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\t var b = Ti.UI.createButton({\r\n\t\t\ttitle : \"Show Webview\",\r\n\t\t\ttop : 210\r\n\t\t});\t\r\n\t\t\r\n\t\tb.addEventListener(\"click\", function() {\r\n\t\t\tvar win = Ti.UI.createWindow({\r\n\t\t title: 'Event Test',\r\n\t\t backgroundColor: '#111',\r\n\t\t //modal: true,\r\n\t\t exitOnClose: true\r\n\t\t });\r\n\t\t\r\n\t\t var b1 = Ti.UI.createButton({\r\n\t\t\ttitle : \"Close\",\r\n\t\t\ttop : 410\r\n\t\t });\t\r\n\t\t \r\n\t\t b1.addEventListener(\"click\", function() {\r\n\t\t\twin.close();\r\n\t\t });\r\n\t\t \r\n\t\t var control = Titanium.UI.createWebView({url:'http://www.appcelerator.com'});\r\n\t\t \r\n\t\t win.add(control);\r\n\t\t win.add(b1);\r\n\t\t win.open();\r\n\t\t});\r\n\t\t\r\nwin1.add(b);\t\r\nwin1.open();\t\r\n\r\n{code}\r\n\r\n\r\nSteps to reproduce:\r\n1)Install the app and run it\r\n2)Click 'Show Webview' button\r\n3)Click 'Close' button\r\n\r\nExpected results:\r\n1)After step 1,a window should get opened with 'Show Webview' button\r\n2)After step 2,a webview should get opened with 'Close' button.\r\n3)After step 3,the webview should get closed and user should return to initial window of step 1.\r\n\r\nActual result:\r\n1)After step 1,a window gets opened with 'Show Webview' button\r\n2)After step 2,a webview gets opened with 'Close' button.\r\n3)After step 3,the app crashes.\r\n\r\nWhen at least one property,modal or exitOnClose is commented in the above code,it works fine.No crash happens after commenting them out.", "attachment": [], "flagged": false, "summary": "Android:Window:modal and exitOnClose properties when used together causes app crash", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Titanium SDK: 2.1.0.v20120607180246\r\nTested with Titanium Studio: 2.1.0.201206062004\r\nDevice - Android 2.2 and 4.0\r\nAndroid Runtime - V8", "comment": { "comments": [ { "id": "240136", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem cannot reproduce release 3.0.2 and latest master release 3.1.0\r\n\r\nTested on:\r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK version: 3.1.0 (28/02/2013)\r\nTitanium SDK version: 3.0.2 (28/02/2013)\r\nDevice: Samsung galaxy s duos Android version: 4.0.4", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T11:29:26.000+0000", "updated": "2013-02-28T11:29:26.000+0000" }, { "id": "413593", "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:45:49.000+0000", "updated": "2017-03-17T18:45:49.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }