|
|
|
|
@ -60,8 +60,8 @@ import java.util.Locale;
|
|
|
|
|
public class SDLActivity extends Activity implements View.OnSystemUiVisibilityChangeListener { |
|
|
|
|
private static final String TAG = "SDL"; |
|
|
|
|
private static final int SDL_MAJOR_VERSION = 2; |
|
|
|
|
private static final int SDL_MINOR_VERSION = 30; |
|
|
|
|
private static final int SDL_MICRO_VERSION = 12; |
|
|
|
|
private static final int SDL_MINOR_VERSION = 32; |
|
|
|
|
private static final int SDL_MICRO_VERSION = 0; |
|
|
|
|
/* |
|
|
|
|
// Display InputType.SOURCE/CLASS of events and devices
|
|
|
|
|
//
|
|
|
|
|
@ -311,7 +311,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
|
|
|
|
|
mNextNativeState = NativeState.INIT; |
|
|
|
|
mCurrentNativeState = NativeState.INIT; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected SDLSurface createSDLSurface(Context context) { |
|
|
|
|
return new SDLSurface(context); |
|
|
|
|
} |
|
|
|
|
@ -790,6 +790,9 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
|
|
|
|
|
window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); |
|
|
|
|
SDLActivity.mFullscreenModeActive = false; |
|
|
|
|
} |
|
|
|
|
if (Build.VERSION.SDK_INT >= 28 /* Android 9 (Pie) */) { |
|
|
|
|
window.getAttributes().layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
Log.e(TAG, "error handling message, getContext() returned no Activity"); |
|
|
|
|
|