{ "id": "62796", "key": "TIMOB-2164", "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": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T03:12:28.000+0000", "created": "2011-04-15T03:12:28.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "back", "button", "defect", "dialog", "options" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T19:18:10.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": "{html}
1.5.0.70ce98 g2 running 2.2, G1 running 1.6
\n1.BaseUI>Views>Options dialog
\n2.tap show dialog, then use the hardware back button to dismiss it.\nread reported value
results:\"you selected 1\" which is the same value reoprted when\nselecting the second item in the dialog. This seems odd.
Check to see if a initial value is being set.
If cancel
is sent in the creation options, then it\nis returned when the cancel button or the back button is selected.\nIf no cancel is sent, result is -1 if back is hit.
Looks like it's set to 1
in the test.
\nvar dialog = Titanium.UI.createOptionDialog({\n options:['Option 1', 'Option 2', 'Option 3'],\n destructive:2,\n cancel:1,\n title:'I am a title'\n});
\n
bad qe taken out back and beaten for not checking the script\nbefore logging a bug, test behaves as expected.