[TIMOB-14553] Android: Galaxy S4 always returns Ti.Platform.displayCaps.density as 'medium'
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-07-19T21:39:16.000+0000 |
Affected Version/s | Release 3.1.0, Release 3.1.1 |
Fix Version/s | 2013 Sprint 15 API, 2013 Sprint 15, Release 3.2.0 |
Components | Android |
Labels | android, density, module_android, qe-manualtest, qe-testadded |
Reporter | Meenakshi Pathak |
Assignee | Hieu Pham |
Created | 2013-07-15T11:43:27.000+0000 |
Updated | 2014-11-20T19:40:23.000+0000 |
Description
On Samsung Galaxy S4, Titanium API returns Ti.Platform.displayCaps.density as
medium
.
Note: It has high resolution 1080 x 1920 pixels screen and high pixel density 441 ppi.
Test Case:
Ti.API.info("density: " + Ti.Platform.displayCaps.density);
1. Run code, should see 'density: xxhigh'
Verified Ti.Platform.displayCaps.density returns "medium" on S4 with 3.1.1.GA. Additional displayCaps output for this device: Ti.Platform.displayCaps.density = medium Ti.Platform.displayCaps.dpi = 480 Ti.Platform.displayCaps.platformHeight = 1920 Ti.Platform.displayCaps.platformWidth = 1080 Ti.Platform.displayCaps.xdpi = About 442 Ti.Platform.displayCaps.ydpi = About 439 Ti.Platform.displayCaps.logicalDensityFactor = 3
https://github.com/appcelerator/titanium_mobile/pull/4455
Verified the fix. We see 'density: xxhigh'. Thus closing. Environment: Appcel Studio : 3.2.0.201310221639 Ti SDK : 3.2.0.v20131022050844 Mac OSX : 10.8.5 Device: Samsung Galaxy S4 running android 4.2.2 CLI - 3.2.0 with hash 72f7426b4ee6c2d2883c666d5b7e03906a16012f