android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
changeset 12008 91f9b8f22b17
parent 12004 757d81897470
child 12009 5b41aa10b12f
     1.1 --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Tue Jun 05 12:46:11 2018 -0700
     1.2 +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Tue Jun 05 12:46:13 2018 -0700
     1.3 @@ -698,6 +698,13 @@
     1.4      /**
     1.5       * This method is called by SDL using JNI.
     1.6       */
     1.7 +    public static boolean isChromebook() {
     1.8 +        return getContext().getPackageManager().hasSystemFeature("org.chromium.arc.device_management");
     1.9 +    }    
    1.10 +
    1.11 +    /**
    1.12 +     * This method is called by SDL using JNI.
    1.13 +     */
    1.14      public static DisplayMetrics getDisplayDPI() {
    1.15          return getContext().getResources().getDisplayMetrics();
    1.16      }