{ "id": "79102", "key": "AC-3005", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-09-02T08:33:27.000+0000", "created": "2011-08-10T08:06:20.000+0000", "labels": [ "android", "bug", "optiondialog" ], "versions": [], "issuelinks": [], "assignee": { "name": "tguntharp", "key": "tguntharp", "displayName": "Tony Guntharp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:48:01.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "A simple code to reproduce the bug :\r\n\r\nvar dialog = Titanium.UI.createOptionDialog({\r\n options : ['hello', 'world', 'how', 'do', 'you', 'do'],\r\n selectedIndex : 1\r\n}); \r\n \r\ndialog.addEventListener('click',function(e) {\r\n Ti.API.info(e.index);\r\n});\r\n\r\n\r\nWhen pressing the hardware back button, console log displays : [INFO] [33940,57185] -2.68435457E8 Where -2.68435457E8 is the value of e.index.\r\n\r\nI don't think click event should even trigger in this case.", "attachment": [], "flagged": false, "summary": "OptionDialog event click return strange datas when pressing back button in Android", "creator": { "name": "amas@einden.com", "key": "amas@einden.com", "displayName": "Adrien Mas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amas@einden.com", "key": "amas@einden.com", "displayName": "Adrien Mas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX\r\nTitanium SDK 1.7.1\r\nAndroid Simulator \"APIs 2.3.3\"", "comment": { "comments": [ { "id": "162481", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thank you for raising this ticket. In order to progress it, please add the missing information in the format and places requested in the guidelines at [Jira Ticket Checklist|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist].\r\n\r\nFor instance, in the environment field:\r\n \r\n* *Titanium SDK version:* number, build date and build hash, copied and pasted from the console at application launch\r\n* *Host Operating System:* OSX x.x, Windows x, Ubuntu x.x\r\n* *Titanium Studio version:* copied and pasted from Help / About\r\n\r\nIn the description:\r\n\r\n* *a link to the Q&A question*, where you asked the community to verify the observed behavior\r\n* *a* *[simple usecase|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases]**:* working code that demonstrates issue, placed within a \\{code\\} wiki markup block. Check that it runs correctly without any modifications when pasted into a blank app.js file\r\n\r\nMany thanks in advance", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-08-10T13:44:05.000+0000", "updated": "2011-08-10T13:44:05.000+0000" }, { "id": "162550", "author": { "name": "amas@einden.com", "key": "amas@einden.com", "displayName": "Adrien Mas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here are the missing elements,\r\n\r\nEnvironment : \r\n- Titanium SDK version : 1.7.1 (06/21/11 14:28 1293a6d)\r\n- Host Operating System : Mac OS X Server version 10.6.8\r\n- not (yet) using Titanium Studio\r\n\r\n- Q&A question : http://developer.appcelerator.com/question/124042/bug-report-optiondialog-event-click-return-strange-datas-when-pressing-back-button-in-android\r\n\r\n", "updateAuthor": { "name": "amas@einden.com", "key": "amas@einden.com", "displayName": "Adrien Mas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-11T01:31:04.000+0000", "updated": "2011-08-11T01:31:04.000+0000" }, { "id": "162552", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thank you for the information, but would you add it to the body of the ticket, please? Also, please add a usecase that runs without modification. Then I can move it to the correct project.\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-08-11T04:30:00.000+0000", "updated": "2011-08-11T04:30:00.000+0000" }, { "id": "164921", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Adrien, as there has been no response, I am closing this ticket. You are welcome to open it again, if you are willing to improve it as per my previous request. Also, the code does not run. Please see [Creating Good Use-cases|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases] and the guidelines in the [Jira Ticket Checklist|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist]. Many thanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-09-02T08:33:27.000+0000", "updated": "2011-09-02T08:33:27.000+0000" }, { "id": "168221", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing due to inactivity.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-10-07T05:47:55.000+0000", "updated": "2011-10-07T05:47:55.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }