Android app in Chromebook cannot get correct dpi value with DisplayMetrics 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 Steps to reproduce the problem: Enable Play store in Chromebook Pixel 2015 1.set Chromebook Pixel 2015 to best resolution Run the following code in Android app in Chromebook Pixel 2013/2015 DisplayMetrics dm = new DisplayMetrics(); mActivity.getWindowManager().getDefaultDisplay().getMetrics(dm); int dpi = dm.densityDpi; What is the expected behavior? We got 120 in the first step What went wrong? We got 240 in the first 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
,
Apr 19 2017
Issue 706768 has been merged into this issue.
,
Apr 19 2018
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||
►
Sign in to add a comment |
|||
Comment 1 by laffier....@gmail.com
, Mar 31 2017