{ "id": "138055", "key": "TIMOB-17859", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-06-27T17:58:30.000+0000", "created": "2014-10-14T15:32:13.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "supportTeam" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-27T17:58:30.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": "h3. Issue\r\n\r\nWhen the AlertDialog is called in Android the buttons are shown inverted as they are declared in the buttonNames array property, in iOS they are shown in the correct order.\r\n\r\nh3. Steps to repro\r\n\r\n1. Run the test case\r\n2. Click on Button\r\n\r\nExpected Result:\r\nThe AlertDialog will show the buttons in the order they are declared in the buttonNames array.\r\n\r\nExpected Result:\r\nThe AlertDialog show the buttons in a different order from the buttonNames array.\r\n\r\nh3. Test case\r\n\r\n{code}\r\nvar window = Ti.UI.createWindow({\r\n\t\tbackgroundColor : '#ffffff',\r\n\t\tlayout : \"vertical\"\r\n\t});\r\n\r\n\tvar button = Titanium.UI.createButton({\r\n\t\ttitle : 'Button',\r\n\t\tcolor : '#000000',\r\n\t\tbackgroundColor : '#ff00ff',\r\n\t\twidth : 150,\r\n\t\ttop : 300,\r\n\t\theight : 40\r\n\t});\r\n\tbutton.addEventListener('click', function(e) {\r\n\t\tvar dialog = Ti.UI.createAlertDialog({\r\n\t\t\tbuttonNames : ['XX', 'YY'],\r\n\t\t\tmessage : 'Would you like to delete the file?',\r\n\t\t\ttitle : 'Delete'\r\n\t\t});\r\n\t\tdialog.show();\r\n\t});\r\n\t\r\n\twindow.add(button);\r\n\twindow.open();\r\n{code}", "attachment": [ { "id": "51966", "filename": "alertdialog_android.png", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-14T15:32:13.000+0000", "size": 93863, "mimeType": "image/png" }, { "id": "51967", "filename": "alertdialog_ios.png", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-14T15:32:13.000+0000", "size": 51763, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: AlertDialog display buttons in wrong order", "creator": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.3.0.GA 3.4.0.GA", "comment": { "comments": [ { "id": "328040", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is there a reason we can't use the existing ticket TIMOB-16556 for this?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-14T15:55:07.000+0000", "updated": "2014-10-14T15:55:07.000+0000" }, { "id": "422955", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate. Please refer to TIMOB-16556.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-27T17:58:24.000+0000", "updated": "2017-06-27T17:58:24.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }