{ "id": "142487", "key": "TIMOB-18376", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-07-25T06:27:38.000+0000", "created": "2015-01-08T03:05:14.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "Dialogs" ], "versions": [ { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [ { "id": "56662", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "171865", "key": "TIMOB-26174", "fields": { "summary": "Android: add setCancelable method on Ti.UI.AlertDialog", "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": "Critical", "id": "1" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2018-08-06T17:41:12.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": "Android 4.0 Dialog gets canceled when touched outside of dialog window. But Android 2.3.3 is on the opposite. I tried the following codes but they don't help:\r\n{code:javascript}\r\n var dialog = Ti.UI.createAlertDialog({\r\n message: 'Message Body',\r\n buttonNames: [ 'Cancel', 'OK' ],\r\n cancel: 0,\r\n ok: 1,\r\n central: 2,\r\n title: 'Message Title',\r\n canceledOnTouchOutside: false\r\n });\r\n dialog.setCanceledOnTouchOutside(false);\r\n dialog.addEventListener('click', self.onDialogClicked);\r\n{code}\r\nIs it possible to make the developer control more dialog behaviours?", "attachment": [], "flagged": false, "summary": "Android: Add setCanceledOnTouchOutside, setCancelable methods on Ti.UI.AlertDialog.", "creator": { "name": "topbit", "key": "topbit", "displayName": "Topbit Du", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "topbit", "key": "topbit", "displayName": "Topbit Du", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android", "closedSprints": [ { "id": 1053, "state": "closed", "name": "2018 Sprint 15 SDK", "startDate": "2018-07-15T21:52:05.453Z", "endDate": "2018-07-29T21:52:00.000Z", "completeDate": "2018-07-29T22:25:11.723Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "398446", "author": { "name": "patrickmounteney", "key": "patrickmounteney", "displayName": "Patrick Mounteney", "active": true, "timeZone": "Europe/London" }, "body": "While the 'canceledOnTouchOutside' property is in the documentation for Ti.UI.AlertDialog, I found setting it to false does not inhibit a tap in it's parent window background from dismissing the alert.\r\n\r\nUsing Titanium SDK 5.5.1.GA", "updateAuthor": { "name": "patrickmounteney", "key": "patrickmounteney", "displayName": "Patrick Mounteney", "active": true, "timeZone": "Europe/London" }, "created": "2016-10-09T07:44:12.000+0000", "updated": "2016-10-09T07:44:12.000+0000" }, { "id": "438924", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-07-02T15:33:56.000+0000", "updated": "2018-07-02T15:33:56.000+0000" }, { "id": "439466", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Added as part of TIMOB-26174.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-07-25T06:27:39.000+0000", "updated": "2018-07-25T06:27:39.000+0000" }, { "id": "440023", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as a duplicate. If this is in error, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:41:12.000+0000", "updated": "2018-08-06T17:41:12.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }