{ "id": "93456", "key": "TIMOB-9630", "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": null, "resolutiondate": null, "created": "2012-06-19T04:49:13.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "qe-and060112", "reprod" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:34.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "An alert dialog is hidden when tapped outside the alert dialog.\r\n\r\nThis issue does not occur on Android 2.2\r\n\r\nNot a regression. This occurs as far as 1.8.2\r\n\r\nSteps to reproduce:\r\n1. Create an application with code below and launch the application\r\n2. Click anywhere on the window\r\n3. After the alert dialog appears click anywhere outside the dialog\r\n\r\nActual: The alert dialog is hidden\r\n\r\nExpected: The behavior should be consistent across Android versions\r\n\r\n{code}\r\nTi.UI.setBackgroundColor('white');\r\nvar win = Ti.UI.createWindow({ \r\n title: 'Click window to test',\r\n backgroundColor: 'white',\r\n exitOnClose: true,\r\n fullscreen: false\r\n});\r\nwin.addEventListener('click', function(e){\r\n var dialog = Ti.UI.createAlertDialog({\r\n cancel: 1,\r\n buttonNames: ['Confirm', 'Cancel', 'Help'],\r\n message: 'Would you like to delete the file?',\r\n title: 'Delete'\r\n });\r\n dialog.addEventListener('click', function(e){\r\n if (e.index === e.source.cancel){\r\n alert('The cancel button was clicked');\r\n }\r\n });\r\n dialog.show();\r\n});\r\nwin.open();\r\n{code]", "attachment": [], "flagged": false, "summary": "Android: AlertDialog: The alert dialog get hidden on tapping on the window outside the alert dialog", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.0.201206172244\r\nTitanium SDK: 2.1.0.v20120618154152\r\nAndroid Device: Android Tab (V3.2), Galaxy Nexus (V4.0.2)\r\nRuntime: v8", "comment": { "comments": [ { "id": "240520", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue does not occur with android 4.0.4\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \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-03-04T11:05:14.000+0000", "updated": "2013-03-04T11:05:14.000+0000" }, { "id": "422970", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170623141152\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-27T18:36:05.000+0000", "updated": "2017-06-27T18:36:05.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }