mirror of
https://github.com/love2d/love-android.git
synced 2026-08-20 20:51:22 +02:00
fixed immersive mode when resuming
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user