{ "id": "85179", "key": "TIMOB-7308", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13408", "description": "Sprint 2012-12 API", "name": "Sprint 2012-12 API", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-08T12:44:16.000+0000", "created": "2012-01-19T18:11:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "parity", "qe-and011912", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "14649", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "80778", "key": "TIMOB-5397", "fields": { "summary": "iOS: subtitleid and titleid properties for Ti.Map.Annotation do not work", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-06-11T14:10:59.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": "subtitleid and titleid properties not displayed by annotation, just a null string.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run Code:\r\n\r\n{code:title=app.js}\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'id:string',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar defaultPin1 = Titanium.Map.createAnnotation({\r\n\tlatitude:37.390749,\r\n\tlongitude:-122.081651,\r\n\ttitleid:'title',\r\n\tsubtitleid:'subtitle',\r\n\tanimate:true,\r\n\tmyid:3,\r\n\tpincolor:Titanium.Map.ANNOTATION_GREEN\r\n});\r\n\r\nvar mapview1 = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n region: {latitude:37.337681,longitude:-122.038193, latitudeDelta:1, longitudeDelta:2},\r\n animate:true,\r\n regionFit:true,\r\n userLocation:false,\r\n annotations:[defaultPin1]\r\n});\r\n\r\n// Test updating the locale properties.\r\nmapview1.addEventListener('click', function() {\r\n\tsetTimeout(function() {\r\n\t\tdefaultPin1.titleid = \"title2\";\r\n\t\tdefaultPin1.subtitle = \"Updated!\";\r\n\t}, 3000);\r\n});\r\n\r\nwin1.add(mapview1);\r\nwin1.open();\r\n{code}\r\n\r\n2. Click Annotation.\r\n\r\nExpected Result:\r\n\r\nAnnotation strings should display.\r\nAfter three seconds both the title and subtitle should get updated.\r\nNote: the annotation will disappear, just click it again to make it visible.\r\nThis is a known Android bug and will be fixed in the future.\r\n\r\nActual Result:\r\n\r\nNull strings display. Screenshot Attached.\r\n\r\nNote: The standard string values in the sample code do not work, nor do the localization strings from the related ios bug work (L('') or '' (shorthand)).", "attachment": [ { "id": "25180", "filename": "device-2012-01-19-180642.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-19T18:11:41.000+0000", "size": 275127, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Implement subtitleid and titleid properties for Ti.Map.Annotation", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 1.9.0.v20120118184633, 1.8.0.1\r\nAndroid: V8/Rhino\r\nStudio: 1.0.8\r\nOS: Lion\r\nDevices Tested: Galaxy Nexus 4.0.2, Nexus S 2.3.6", "comment": { "comments": [ { "id": "197517", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Marking this as new feature. Documentation clearly states that titleid and subtitleid are properties supported by IOS only", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-06T10:00:53.000+0000", "updated": "2012-06-06T10:00:53.000+0000" }, { "id": "197607", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated test case to verify property changes work.\r\nMake sure to add \"title2\" to your locale file.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-06T17:51:26.000+0000", "updated": "2012-06-06T17:51:26.000+0000" }, { "id": "197612", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[PR #2345|https://github.com/appcelerator/titanium_mobile/pull/2345] to resolve issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-06T18:08:27.000+0000", "updated": "2012-06-06T18:08:27.000+0000" }, { "id": "198059", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nSDK: 2.1.0.v20120608174150\r\nStudio: 2.1.0.201206081630\r\nOS: Snow Leopard\r\nDevices Tested: Nexus One 2.2.2, Galaxy Nexus 4.0.3", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-11T14:10:59.000+0000", "updated": "2012-06-11T14:10:59.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }