{ "id": "171894", "key": "TIMOB-26189", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2019-05-21T01:57:27.000+0000", "created": "2018-07-09T23:36:58.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [ { "id": "56669", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "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": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-05-27T12:33:19.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Adds the {{buttonClickRequired}} property to {{Ti.UI.AlertDialog}}, which controls whether the dialog can be cancelled by clicking the system back button. Defaults to `true`.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({layout: 'vertical'}),\r\n\tbutton1 = Ti.UI.createButton({title: 'Cancelable'}),\r\n\tbutton2 = Ti.UI.createButton({title: 'Non-cancelable'}),\r\n\tdialog = Ti.UI.createAlertDialog({\r\n\t\tmessage: 'Message',\r\n\t\tok: 'OK',\r\n\t\ttitle: 'Title',\r\n\t\tpersistent: true\r\n\t});\r\n\r\nbutton1.addEventListener('click', function () {\r\n\tdialog.buttonClickRequired = false;\r\n\tdialog.show();\r\n})\r\n\r\nbutton2.addEventListener('click', function () {\r\n\tdialog.buttonClickRequired = true;\r\n\tdialog.show();\r\n})\r\n\r\nwin.add([button1, button2]);\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Windows: add buttonClickRequired method on Ti.UI.AlertDialog", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "menno", "key": "menno", "displayName": "Menno Juistdit", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "closedSprints": [ { "id": 1136, "state": "closed", "name": "2019 Sprint 11", "startDate": "2019-05-18T17:39:52.830Z", "endDate": "2019-05-31T17:39:00.000Z", "completeDate": "2019-06-04T21:37:11.485Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "448540", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving this as \"Won't Do\" because Windows UWP MessageDialog component ([Windows::UI::Popups::MessageDialog|https://docs.microsoft.com/en-us/uwp/api/windows.ui.popups.messagedialog]) does not have a way to react to the back button. I have confirmed that Windows 10 Mobile phone treats the back button as a cancel button. The API document for UWP MessageDialog shows that there's [CancelCommandIndex|https://docs.microsoft.com/en-us/uwp/api/windows.ui.popups.messagedialog.cancelcommandindex#Windows_UI_Popups_MessageDialog_CancelCommandIndex] _unsigned_ int property and setting {{-1}} (despite CancelCommandIndex is _unsigned_ int !) to it could be used to ignore dismissal action but I have confirmed that it doesn't actually work. \r\n\r\n\r\n\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-05-21T01:57:27.000+0000", "updated": "2019-05-21T01:57:27.000+0000" }, { "id": "448660", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as it is marked as Won't do.\r\n\r\nIf you feel this is a mistake feel free to reopen. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-27T12:33:19.000+0000", "updated": "2019-05-27T12:33:19.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }