{ "id": "116328", "key": "TIMOB-14333", "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": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-02-28T13:33:05.000+0000", "created": "2013-06-21T17:16:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "mobilesdk" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T20:54:17.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": "Note that this bug does not occur in 3.0GA onwards. We have a customer using 2.1.4GA who needs this to be fixed.\r\n\r\nAdding Map view on table view row object and clicking on Map Annotation crashes the app.\r\n\r\nSteps to reproduce.\r\n\r\n1: Use the below mentioned sample.\r\n2: create a sample app and put the code in app.js file.\r\n3: Launch the app in android.\r\n4: Click on the map annotation. App should crash.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : \"gray\"\r\n});\r\n\r\nvar tbView = Ti.UI.createTableView();\r\n\r\nvar tbRow1 = Ti.UI.createTableViewRow({\r\n title:\"row1\",\r\n height:200,\r\n width:320\r\n});\r\n\r\nvar tbRow2 = Ti.UI.createTableViewRow({\r\n title:\"row2\",\r\n height:200,\r\n width:320\r\n});\r\nvar tbRow3 = Ti.UI.createTableViewRow({\r\n title:\"row3\",\r\n height:100,\r\n width:320\r\n});\r\n\r\n\r\n\r\nvar locationMap = Ti.Map.createView({\r\n mapType : Titanium.Map.STANDARD_TYPE,\r\n region : {\r\n latitude : 0,\r\n longitude : 0,\r\n latitudeDelta : 0.01,\r\n longitudeDelta : 0.01\r\n },\r\n animate : true,\r\n regionFit : true,\r\n userLocation : false,\r\n height:150,\r\n width:320\r\n});\r\nvar locationAnnotation = Ti.Map.createAnnotation({\r\n latitude : 28.65432,\r\n longitude : 74.23456,\r\n title : \"employee.AddressName\",\r\n subtitle : \"employee.StreetFull\",\r\n pincolor : Titanium.Map.ANNOTATION_RED,\r\n animate : true\r\n});\r\n\r\nlocationMap.removeAllAnnotations();\r\nlocationMap.addAnnotation(locationAnnotation);\r\n\r\nlocationMap.setRegion({\r\n latitude : 28.65432,\r\n longitude : 75.23456,\r\n latitudeDelta : 0.01,\r\n longitudeDelta : 0.01\r\n});\r\n\r\n\r\n\r\n//=========\r\n\r\nvar locationMap1 = Ti.Map.createView({\r\n mapType : Titanium.Map.STANDARD_TYPE,\r\n region : {\r\n latitude : 0,\r\n longitude : 0,\r\n latitudeDelta : 0.01,\r\n longitudeDelta : 0.01\r\n },\r\n animate : true,\r\n regionFit : true,\r\n userLocation : false,\r\n height:130,\r\n width:320\r\n});\r\nvar locationAnnotation1 = Ti.Map.createAnnotation({\r\n latitude : 29.65432,\r\n longitude : 74.23456,\r\n title : \"employee.AddressName\",\r\n subtitle : \"employee.StreetFull\",\r\n pincolor : Titanium.Map.ANNOTATION_RED,\r\n animate : true\r\n});\r\n\r\nlocationMap1.removeAllAnnotations();\r\nlocationMap1.addAnnotation(locationAnnotation1);\r\n\r\nlocationMap1.setRegion({\r\n latitude : 29.65432,\r\n longitude : 75.23456,\r\n latitudeDelta : 0.01,\r\n longitudeDelta : 0.01\r\n});\r\n\r\n//=========\r\n\r\n//tbRow1.add(locationMap);\r\ntbRow2.add(locationMap1);\r\n// tbRow3.add(locationMap);\r\n\r\nvar datavar = [tbRow1,tbRow2,tbRow3];\r\n\r\ntbView.data = datavar;\r\nwin.add(tbView);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Clicking Map Annotation with Map added to table view row crashes", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Mobile SDK, Android 2.3.3, Android 4.1.x", "comment": { "comments": [ { "id": "295061", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am going to mark this as fixed in 2.1.4 and 3.0.0.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-28T13:33:05.000+0000", "updated": "2014-02-28T13:33:05.000+0000" }, { "id": "412975", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T20:54:17.000+0000", "updated": "2017-03-16T20:54:17.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }