mirror of
https://github.com/love2d/love-android.git
synced 2026-08-22 05:25:27 +02:00
fixed immersive mode when resuming
This commit is contained in:
@@ -80,9 +80,8 @@ public class GameActivity extends SDLActivity {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onWindowFocusChanged(boolean hasFocus) {
|
||||
super.onWindowFocusChanged(hasFocus);
|
||||
if (hasFocus) {
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
getWindow().getDecorView().setSystemUiVisibility(
|
||||
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||
| 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_IMMERSIVE_STICKY);
|
||||
}
|
||||
}
|
||||
|
||||
public static String getGamePath() {
|
||||
Log.d ("GameActivity", "called getGamePath(), game path = " + gamePath);
|
||||
|
||||
Reference in New Issue
Block a user