{ "id": "86627", "key": "TIMOB-7696", "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": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-05-02T22:04:32.000+0000", "created": "2012-02-16T16:10:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-02T22:04:32.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": "h2. Problem\r\n\r\nWhen both of the an {{options}} (invalid) and {{buttonNames}} (valid) properties are defined, both picker and button views are displayed together in the dialog. See attached screenshot. Options are not part of the AlertDialog API, which is in contrast to the OptionDialog API that can show both on Android, and has complimentary click event properties to support it. See [options_dialog.js|https://github.com/appcelerator/titanium_mobile/blob/master/demos/KitchenSink/Resources/examples/options_dialog.js] to demonstrate that it is valid for OptionDialog.\r\n\r\nI would suggest removing/ignoring the {{options}} property if set for AlertDialog.\r\n\r\nThis is not an issue on iOS.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nTi.UI.setBackgroundColor('white');\r\nvar win = Ti.UI.createWindow({ \r\n title: 'Click window to test',\r\n backgroundColor: 'white',\r\n\texitOnClose: true,\r\n\tfullscreen: false\r\n});\r\n\r\nwin.addEventListener('click', function(e){\r\n\tvar opts = {};\r\n\topts = {\r\n\t\tcancel: 2,\r\n\t\tdestructive: 1,\r\n\t\toptions: ['Confirm', 'Cancel', 'Help'],\r\n\t\tbuttonNames: ['Confirm', 'Cancel', 'Help'],\r\n\t\ttitle: 'Delete File?'\r\n\t};\r\n\tvar dialog = Ti.UI.createAlertDialog(opts).show();\r\n});\r\nwin.open();\r\n{code}\r\n\r\n", "attachment": [ { "id": "25810", "filename": "5560_titanium_4_WVGA854-1.png", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-16T16:11:09.000+0000", "size": 85355, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: UI.AlertDialog - removing/ignoring options property if set to prevent picker being added", "creator": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": "* Titanium Mobile 1.8.1, 1.9.0 (2012/02/09 14:46 6d0363b)\r\n* Android 2.2 APIs\r\n* v8\r\n* Mac OSX\r\n", "comment": { "comments": [ { "id": "418925", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as Invalid as there is now a new version of Kitchen Sink available and we no longer support the version which relates to this ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-02T22:04:32.000+0000", "updated": "2017-05-02T22:04:32.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }