{ "id": "165455", "key": "TIMOB-24344", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-02-07T01:40:12.000+0000", "created": "2017-01-25T02:12:01.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-02-09T22:46:26.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": "DisplayCapsProxy.getDensity() maps DisplayMetrics.densityDpi to density strings.\r\n\r\nThe value of 213 is incorrectly mapped to \"high\". In google's android docs, 213 is \"tvdpi\", not \"hdpi\".\r\n\r\nThis can cause layout errors in cases where we have to explicitly deal with pixels and you are using getDensity() to determine the ratio of dp to px. \r\n\r\nFor example, the ScrollView.scrollTo() function requires values in pixels. To get pixels, we have to convert dp to px, and we use the density strings to perform this conversion. If we get the value \"high\", we multiply by 1.5. But on a device that has a densityDpi of 213, we should be using 1.33 instead.\r\n\r\nWe need a different value for density on devices that use tvdpi, like the LG G Pad 8.0 LG-V480.", "attachment": [], "flagged": false, "summary": "Android: hdpi is mapped to incorrect value 213 in DisplayCapsProxy.java", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": null, "closedSprints": [ { "id": 808, "state": "closed", "name": "2017 Sprint 03 SDK", "startDate": "2017-01-28T21:12:30.215Z", "endDate": "2017-02-12T21:12:00.000Z", "completeDate": "2017-02-12T23:37:14.667Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "405832", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8808", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-31T16:27:45.000+0000", "updated": "2017-01-31T16:27:45.000+0000" }, { "id": "406784", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix is present in SDK 6.1.0.v20170209111025.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-09T22:46:19.000+0000", "updated": "2017-02-09T22:46:19.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }