{ "id": "174924", "key": "TIMOB-27854", "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": "2020-04-19T20:15:06.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2020-04-21T04:05:37.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": "If I set both the {{message}} and {{options}} parameter of the {{Ti.UI.OptionDialog}}, the {{options}} are not displayed:\r\n{code:js}\r\n const options = Ti.UI.createOptionDialog({\r\n title: 'My title',\r\n message: 'My message',\r\n options: ['Yes', 'No'],\r\n cancel: 1\r\n });\r\n options.show();\r\n{code}\r\n\r\nThe same works fine on iOS and represents a UX and parity issue for us.", "attachment": [], "flagged": false, "summary": "Android: Ti.UI.OptionDialog \"options\" are not honored if \"message\" is set", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 9.x", "comment": { "comments": [ { "id": "455195", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is an undocumented feature. Our {{OptionDialog}} doesn't mention \"message\" support.\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.OptionDialog\r\n\r\nAnd we probably don't document it because this is a native limitation on Google's end. You can either have a message or an item list, but not both. The only other way to do this is to set up a custom view within the dialog, but most native Android devs ditch the message and just use the title instead.\r\nhttps://developer.android.com/guide/topics/ui/dialogs.html\r\n\r\n{quote}\r\n*Quote from Google:*\r\nBecause the list appears in the dialog's content area, the dialog cannot show both a message and a list and you should set a title for the dialog with setTitle().\r\n{quote}\r\n\r\nI do agree that the lack of parity here isn't great. The only way for us to solve it is to use a custom view within the dialog. :-/", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-21T04:05:37.000+0000", "updated": "2020-04-21T04:05:37.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }