Add the Android implementation for Monocle. The changes for this are here:
https://bitbucket.org/javafxports/8u60-rt/commits/8aa6c5904da781d41b44bd65ce443a4bf18115e9/raw/
or in a more human readable way:
https://bitbucket.org/javafxports/8u60-rt/commits/8aa6c5904da781d41b44bd65ce443a4bf18115e9
Apart from 1, these are android-specific changes.
I added a generic modification as well: added a getScale() method on NativeScreen that returns the scale/density of the native screen. This is then passed to the constructor of com.sun.glass.ui.Screen(). That constructor already expected a scale factor, and the existing MonocleApplication class will set this scale factor hard to 1.0f, which makes it impossible to use HiDPI or Retina.
https://bitbucket.org/javafxports/8u60-rt/commits/8aa6c5904da781d41b44bd65ce443a4bf18115e9/raw/
or in a more human readable way:
https://bitbucket.org/javafxports/8u60-rt/commits/8aa6c5904da781d41b44bd65ce443a4bf18115e9
Apart from 1, these are android-specific changes.
I added a generic modification as well: added a getScale() method on NativeScreen that returns the scale/density of the native screen. This is then passed to the constructor of com.sun.glass.ui.Screen(). That constructor already expected a scale factor, and the existing MonocleApplication class will set this scale factor hard to 1.0f, which makes it impossible to use HiDPI or Retina.
- duplicates
-
JDK-8097927 [Android] Changes needed in Monocle for Dalvik
- Resolved