Issue metadata
Sign in to add a comment
|
ARC based app cannot get correct DPI value with Android display manager interface
Reported by
laffier....@gmail.com,
Mar 30 2017
|
||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; CrOS x86_64 9000.91.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.110 Safari/537.36 Platform: 9000.91.0 (Official Build) stable-channel link Steps to reproduce the problem: Steps to reproduce the problem: 1.set Chromebook Pixel 2013/2015 to best resolution Run the following code in ARC based app in Chromebook Pixel 2013/2015 DisplayMetrics dm = new DisplayMetrics(); mActivity.getWindowManager().getDefaultDisplay().getMetrics(dm); int dpi = dm.densityDpi; 2.set Chromebook Pixel 2013/2015 to native resolution Run the following code in ARC based app in Chromebook Pixel 2013/2015 DisplayMetrics dm = new DisplayMetrics(); mActivity.getWindowManager().getDefaultDisplay().getMetrics(dm); int dpi = dm.densityDpi; What is the expected behavior? 1. the returned dpi value should be 120 2. the returned dpi value should be 240 What went wrong? 1.We got 240 in the first step 2.We got 120 in the second step Did this work before? N/A Chrome version: 56.0.2924.110 Channel: stable OS Version: 9000.91.0 Flash Version: Shockwave Flash 24.0 r0 We can get correct value with Chrome.system.display.getInfo
,
Apr 19 2017
|
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by laffier....@gmail.com
, Mar 31 2017