[AC-1937] Ti.Platform.displayCaps.density returning wrong value on Nexus 5
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2014-01-23T06:01:02.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | android, displaycaps, dpi |
| Reporter | Jonian Dervishi |
| Assignee | Ritu Agrawal |
| Created | 2014-01-16T19:32:40.000+0000 |
| Updated | 2016-03-08T07:40:51.000+0000 |
Description
Ti.Platform.displayCaps.density is returning the value 160 on the Nexus 5 device running android 4.4.2 while the correct one should be 445.
[INFO] : Titanium.Platform.model: Nexus 5
[INFO] : Ti.Platform.displayCaps.density: medium
[INFO] : Ti.Platform.displayCaps.dpi: 160
[INFO] : Ti.Platform.displayCaps.platformHeight: 592
[INFO] : Ti.Platform.displayCaps.platformWidth: 360
[INFO] : Ti.Platform.displayCaps.xdpi: 147.48367309570312
[INFO] : Ti.Platform.displayCaps.ydpi: 147.78167724609375
[INFO] : Ti.Platform.displayCaps.logicalDensityFactor: 1
[INFO] : Ti.Platform.displayCaps.logicalDensityFactor: 1
[~joniand] We have not been able to reproduce this error. Ti.Platform.displayCaps.density is returning the correct value. [INFO] : Titanium.Platform.model: Nexus 5 [INFO] : Ti.Platform.displayCaps.density: xxhigh [INFO] : Ti.Platform.displayCaps.dpi: 480 [INFO] : Ti.Platform.displayCaps.platformHeight: 1776 [INFO] : Ti.Platform.displayCaps.platformWidth: 1080 Please let us know if this is still as issue for you.