{ "id": "146373", "key": "TIMOB-18767", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" }, { "id": "16795", "description": "Release 4.0.2", "name": "Release 4.0.2", "archived": false, "released": true, "releaseDate": "2017-03-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-04-14T23:53:15.000+0000", "created": "2015-03-30T07:32:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "16711", "description": "Release 3.5.1", "name": "Release 3.5.1", "archived": false, "released": true, "releaseDate": "2015-03-06" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [ { "id": "46948", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "140465", "key": "TIMOB-18083", "fields": { "summary": "Android: DisplayCaps density for nexus 6 is shown as medium", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-04-28T23:57:38.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": "{{Ti.Platform.displayCaps.density}} returns {{medium}} when the device is {{xxxhigh}} because the [code|https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/platform/src/java/ti/modules/titanium/platform/DisplayCapsProxy.java#L61-L80] doesn't check for {{640}} dpi and defaults to {{medium}}.\r\n\r\nPerhaps the logic could be made more future proof by defaulting to the highest if the dpi is > then the highest on record?", "attachment": [], "flagged": false, "summary": "Android: displayCaps.density returns \"medium\" on \"xxxhigh\" devices", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "master", "closedSprints": [ { "id": 370, "state": "closed", "name": "2015 Sprint 07 SDK", "startDate": "2015-03-28T00:00:13.362Z", "endDate": "2015-04-11T00:00:00.000Z", "completeDate": "2015-04-13T16:25:29.003Z", "originBoardId": 114 }, { "id": 371, "state": "closed", "name": "2015 Sprint 08 SDK", "startDate": "2015-04-11T00:00:49.626Z", "endDate": "2015-04-24T12:00:00.000Z", "completeDate": "2015-04-28T15:02:06.073Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "347679", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "PR on master: https://github.com/appcelerator/titanium_mobile/pull/6754", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-03-30T07:33:11.000+0000", "updated": "2015-03-30T07:33:11.000+0000" }, { "id": "347729", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unsure if duplicate or just related.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-30T16:41:50.000+0000", "updated": "2015-03-30T16:41:50.000+0000" }, { "id": "347735", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Yes, indeed TIMOB-18083 is the symptom of this issue.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-03-30T17:35:05.000+0000", "updated": "2015-03-30T17:35:05.000+0000" }, { "id": "347737", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I have closed the other one as this has the PR and describes the actual problem.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-03-30T17:36:27.000+0000", "updated": "2015-03-30T17:36:27.000+0000" }, { "id": "349213", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/6776", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-10T22:04:52.000+0000", "updated": "2015-04-10T22:04:52.000+0000" }, { "id": "349653", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~hpham] shouldn't 213 return {{tv}} and 280, 400 and 560 that same number so we follow the mapping of the constants on http://developer.android.com/reference/android/util/DisplayMetrics.html?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-04-15T07:31:54.000+0000", "updated": "2015-04-15T07:31:54.000+0000" }, { "id": "349799", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Ah, now I see. That matches the behaviour I saw in https://university.appcelerator.com/video/o2EhzZhe/Working-with-densityspecific-images where it selected the {{high}} (indeed not {{xhigh}}) image when I ran Genymotion at 213.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-04-16T08:03:05.000+0000", "updated": "2015-04-16T08:03:05.000+0000" }, { "id": "349977", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fix a typo for TV density \r\nmaster PR: https://github.com/appcelerator/titanium_mobile/pull/6788", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-17T17:44:56.000+0000", "updated": "2015-04-17T17:44:56.000+0000" }, { "id": "351073", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using\r\n\r\nMac OSX 10.10.3\r\nAppc Studio: 4.0.0.201504272049\r\nTitanium SDK build: 4.0.0.v20150427093413\r\nAppc CLI (NPM): 0.3.51\r\nAppc CLI (Registry): 0.2.273\r\nNexus 6 (5.0.1)\r\n\r\n{{Ti.Platform.displayCaps.density}} now returns xxxhigh on xxxhigh devices,\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-04-28T23:57:33.000+0000", "updated": "2015-04-28T23:57:33.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }