{ "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

\n

1.BaseUI>Views>Options dialog
\n2.tap show dialog, then use the hardware back button to dismiss it.\nread reported value

\n

results:\"you selected 1\" which is the same value reoprted when\nselecting the second item in the dialog. This seems odd.

{html}", "attachment": [], "flagged": false, "summary": "Android: Options dialog - dismissing dialog by way of back button reports itself as a dialog selection", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127702", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Check to see if a initial value is being set.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:28.000+0000", "updated": "2011-04-15T03:12:28.000+0000" }, { "id": "127703", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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.

\n

Looks like it's set to 1 in the test.

\n
\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
{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:28.000+0000", "updated": "2011-04-15T03:12:28.000+0000" }, { "id": "127704", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

bad qe taken out back and beaten for not checking the script\nbefore logging a bug, test behaves as expected.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:29.000+0000", "updated": "2011-04-15T03:12:29.000+0000" }, { "id": "408427", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closed as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T19:18:10.000+0000", "updated": "2017-03-02T19:18:10.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }