android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
changeset 12312 522de4f715bd
parent 12308 4e3b4ddb8787
child 12348 09d04d83c3c1
     1.1 --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Tue Oct 09 17:41:40 2018 -0700
     1.2 +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Tue Oct 09 20:12:40 2018 -0700
     1.3 @@ -191,8 +191,8 @@
     1.4      // Setup
     1.5      @Override
     1.6      protected void onCreate(Bundle savedInstanceState) {
     1.7 -        Log.v(TAG, "Device: " + android.os.Build.DEVICE);
     1.8 -        Log.v(TAG, "Model: " + android.os.Build.MODEL);
     1.9 +        Log.v(TAG, "Device: " + Build.DEVICE);
    1.10 +        Log.v(TAG, "Model: " + Build.MODEL);
    1.11          Log.v(TAG, "onCreate()");
    1.12          super.onCreate(savedInstanceState);
    1.13  
    1.14 @@ -1585,8 +1585,7 @@
    1.15          int nDeviceHeight = height;
    1.16          try
    1.17          {
    1.18 -            if ( android.os.Build.VERSION.SDK_INT >= 17 )
    1.19 -            {
    1.20 +            if (Build.VERSION.SDK_INT >= 17) {
    1.21                  android.util.DisplayMetrics realMetrics = new android.util.DisplayMetrics();
    1.22                  mDisplay.getRealMetrics( realMetrics );
    1.23                  nDeviceWidth = realMetrics.widthPixels;