1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Merge pull request #108557 from syntaxerror247/Fix-system-bar-regression

Android: Fix system bar regression
This commit is contained in:
Thaddeus Crews
2025-07-30 09:03:37 -05:00
5 changed files with 54 additions and 6 deletions

View File

@@ -56,11 +56,12 @@ public class GodotApp extends GodotActivity {
}
}
private final Runnable updateImmersiveAndEdgeToEdgeModes = () -> {
private final Runnable updateWindowAppearance = () -> {
Godot godot = getGodot();
if (godot != null) {
godot.enableImmersiveMode(godot.isInImmersiveMode(), true);
godot.enableEdgeToEdge(godot.isInEdgeToEdgeMode(), true);
godot.setSystemBarsAppearance();
}
};
@@ -74,12 +75,12 @@ public class GodotApp extends GodotActivity {
@Override
public void onResume() {
super.onResume();
updateImmersiveAndEdgeToEdgeModes.run();
updateWindowAppearance.run();
}
@Override
public void onGodotMainLoopStarted() {
super.onGodotMainLoopStarted();
runOnUiThread(updateImmersiveAndEdgeToEdgeModes);
runOnUiThread(updateWindowAppearance);
}
}