{ "id": "115937", "key": "AC-2300", "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": "2013-07-23T22:00:00.000+0000", "created": "2013-06-14T08:21:41.000+0000", "labels": [ "android", "annotations", "view" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:18.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": "*Problem*\r\nWhen using rightView property annotation, when clearing all annotations, it seems that on Android, it deletes the view as well, so next time you update the annotation (by recreating them), when you click on annotations it crashes the app.\r\n\r\n*Test case*\r\n{code:javascript}\r\nvar annotView = Titanium.UI.createView({\r\n\theight : '32dp',\r\n\twidth : '70dp'\r\n});\r\n\r\nfunction createAnnotations() {\r\n\t// then a loop for creating annotations\r\n\tfor (var i = 0; i < annot.length; i++) {\r\n\t\t// some stuff here\r\n\t\tvar annotation = Titanium.Map.createAnnotation({\r\n\t\t\tlatitude : lat,\r\n\t\t\tlongitude : lon,\r\n\t\t\ttitle : myTitle,\r\n\t\t\tsubtitle : myTitle,\r\n\t\t\tanimate : true,\r\n\t\t\tleftButton : '/images/myImg.png',\r\n\t\t\tdataId : i,\r\n\t\t\trightView : annotView\r\n\t\t});\r\n\t\t// some stuff here\r\n\t};\r\n};\r\n\r\n// call createAnnotations();\r\n{code}\r\n\r\nNow you can click the annotations and it works fine.\r\n\r\nThen you clear all annotations and call createAnnotations() again.\r\nIf you click on an annotation it crashes the app.\r\n\r\nThis code works fine on iOS.", "attachment": [], "flagged": false, "summary": "Android: Problem with Annotation rightView", "creator": { "name": "ads", "key": "ads", "displayName": "Armindo Da Silva", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ads", "key": "ads", "displayName": "Armindo Da Silva", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TI SDK 3.1.X, Android Device, OSX Mountain Lion", "comment": { "comments": [ { "id": "261373", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Armindo,\n\nIt would help a lot if you could edit your test case to be runnable in a project so that we can easily reproduce the crash.\n\nThanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-11T00:00:42.000+0000", "updated": "2013-07-11T00:00:42.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }