summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5bf9c81)
raw | patch | inline | side by side (parent: 5bf9c81)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sun, 29 Jul 2018 19:40:06 +0000 (22:40 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sun, 29 Jul 2018 19:40:33 +0000 (22:40 +0300) |
android/src/org/d2df/app/Doom2DF.java | patch | blob | history | |
android/src/org/libsdl/app/SDLActivity.java | patch | blob | history |
index 07e63eeb8743f971221a2f252c3a1550cd79e533..614110270add01ed5a2464755993dca55259e793 100644 (file)
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+
CopyAssets.copyAssets(SDL.getContext(), "");
CopyAssets.copyAssets(SDL.getContext(), "data");
CopyAssets.copyAssets(SDL.getContext(), "data/models");
diff --git a/android/src/org/libsdl/app/SDLActivity.java b/android/src/org/libsdl/app/SDLActivity.java
index 57f931e356934049995e79404f0537a88dcb0c82..585ad30a12ca85d5ee928a18cf1728059259174b 100644 (file)
SDLActivity.onNativeDropFile(filename);
}
}
+
+ hideNavigationBar();
}
// Events
mNextNativeState = NativeState.RESUMED;
mIsResumedCalled = true;
+ hideNavigationBar();
+
if (SDLActivity.mBrokenLibraries) {
return;
}
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(mTextEdit.getWindowToken(), 0);
+ hideNavigationBar();
+
mScreenKeyboardShown = false;
}
break;
return messageboxSelection[0];
}
+ public static void hideNavigationBar() {
+ if (Build.VERSION.SDK_INT >= 19) {
+ int opt = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
+ | View.SYSTEM_UI_FLAG_FULLSCREEN
+ | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
+ mSingleton.getWindow().getDecorView().setSystemUiVisibility(opt);
+ }
+ }
+
@Override
protected Dialog onCreateDialog(int ignore, Bundle args) {