{ "id": "83510", "key": "TIMOB-6859", "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-07-12T22:15:14.000+0000", "created": "2011-12-09T02:04:35.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "14360", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "81917", "key": "TIMOB-6857", "fields": { "summary": "Android: UI - the back hardware button triggers optionDialog's click event", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-12T22:15:42.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 an optionDialog is being displayed, and the hardware back button is pressed, optionDialog's index contains the strange value of {{-268435457}}. I feel the event should not be returned.\r\n\r\nh2. Test case\r\n\r\n* run code below\r\n* click on the button so that optionDialog shows\r\n* hit the hardware back-button. You'll see that this triggers dialog's click event and displays the index value.\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n fullscreen: true,\r\n backgroundColor: '#000'\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n title: 'Open dialog'\r\n});\r\n\r\nbutton.addEventListener('click', function() {\r\n\r\n var dialog = Ti.UI.createOptionDialog({\r\n options: ['Option 1', 'Option 2', 'Option 3'],\r\n title: 'Options'\r\n });\r\n\r\n dialog.addEventListener('click', function(e) {\r\n Ti.API.info('optionDialog click event!');\r\n Ti.API.info('optionDialog index value = ' + e.index);\r\n });\r\n\r\n dialog.show();\r\n});\r\n\r\nwin.add(button);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh2. Results\r\n\r\n{code}\r\n588 TiAPI I optionDialog click event!\r\n588 TiAPI I optionDialog index value = -268435457\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: UI - optionDialog click event fired and index contains strange value when back button pressed", "creator": { "name": "vinothbabu", "key": "vinothbabu", "displayName": "Vinothbabu", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vinothbabu", "key": "vinothbabu", "displayName": "Vinothbabu", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium Mobile 1.8.0.1\r\n* Android APIs 2.2\r\n* JS Runtime v8\r\n* Titanium Studio, build: 1.0.8.201112211741\r\n* Ubuntu 10.04", "comment": { "comments": [ { "id": "175658", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-12-10T07:46:27.000+0000", "updated": "2011-12-10T07:46:27.000+0000" }, { "id": "177128", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-12-23T12:17:56.000+0000", "updated": "2011-12-23T12:17:56.000+0000" }, { "id": "177137", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Vinothbabu\r\n\r\nYou are fortunate that this ticket is almost identical to Ivan's, because it would not have been accepted otherwise. This is because it contained almost none of the necessary information. Please ensure that you read [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] before raising any more tickets.\r\n\r\nNow that I have completed the information with the help of Ivan's ticket, I will escalate this ticket to our engineering team.\r\n\r\nThank you for your understanding.\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-23T15:58:04.000+0000", "updated": "2011-12-23T15:58:04.000+0000" }, { "id": "424036", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed, lack of progress for a number of years and there are linked issues that have more activity. Please open a new ticket if there are any problems.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-12T22:15:14.000+0000", "updated": "2017-07-12T22:15:14.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }