You've already forked godot
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user