fixed immersive mode when resuming

This commit is contained in:
fysx
2015-01-20 14:36:57 +01:00
parent 013df025d0
commit 36216c16be
+2 -4
View File
@@ -80,9 +80,8 @@ public class GameActivity extends SDLActivity {
} }
@Override @Override
public void onWindowFocusChanged(boolean hasFocus) { public void onResume() {
super.onWindowFocusChanged(hasFocus); super.onResume();
if (hasFocus) {
getWindow().getDecorView().setSystemUiVisibility( getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
@@ -91,7 +90,6 @@ public class GameActivity extends SDLActivity {
| View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_FULLSCREEN
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY); | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
} }
}
public static String getGamePath() { public static String getGamePath() {
Log.d ("GameActivity", "called getGamePath(), game path = " + gamePath); Log.d ("GameActivity", "called getGamePath(), game path = " + gamePath);