mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 12:25:37 +00:00
Make SDL fullscreen windows on Android actually fullscreen
This commit is contained in:
parent
c954b53830
commit
bb8c3a9cc2
|
@ -211,6 +211,20 @@ public class SDLActivity extends Activity {
|
||||||
|
|
||||||
setContentView(mLayout);
|
setContentView(mLayout);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Per SDL_androidwindow.c, Android will only ever have one window, and that window
|
||||||
|
* is always flagged SDL_WINDOW_FULLSCREEN. Let's treat it as an immersive fullscreen
|
||||||
|
* window for Android UI purposes, as a result.
|
||||||
|
*/
|
||||||
|
int iFlags =
|
||||||
|
View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY |
|
||||||
|
View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |
|
||||||
|
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
|
||||||
|
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
|
||||||
|
View.SYSTEM_UI_FLAG_FULLSCREEN;
|
||||||
|
|
||||||
|
getWindow().getDecorView().setSystemUiVisibility(iFlags);
|
||||||
|
|
||||||
// Get filename from "Open with" of another application
|
// Get filename from "Open with" of another application
|
||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
if (intent != null && intent.getData() != null) {
|
if (intent != null && intent.getData() != null) {
|
||||||
|
|
Loading…
Reference in a new issue