diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-17 20:57:49 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-17 20:57:49 +0100 |
commit | 0d4e91e2a3e542cac3f9fb7fe6f88d60e41f8e46 (patch) | |
tree | 71db8bdd6afa0dc18a51bc7470f7746fa5ec9dbc | |
parent | 49cc12bf89689c35f0d867790a25fb3112899a6d (diff) | |
parent | 3c75887d41b09e8ca6a9002b77f894a1c3813d73 (diff) |
Merge pull request #68790 from m4gr3d/fix_keep_screen_on_main
Fix parsing of the `keep_screen_on` display setting
-rw-r--r-- | platform/android/java/lib/src/org/godotengine/godot/Godot.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/java/lib/src/org/godotengine/godot/Godot.java b/platform/android/java/lib/src/org/godotengine/godot/Godot.java index f73f8aaa31..a002a37ab9 100644 --- a/platform/android/java/lib/src/org/godotengine/godot/Godot.java +++ b/platform/android/java/lib/src/org/godotengine/godot/Godot.java @@ -299,7 +299,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC for (GodotPlugin plugin : pluginRegistry.getAllPlugins()) { plugin.onRegisterPluginWithGodotNative(); } - setKeepScreenOn("true".equals(GodotLib.getGlobal("display/window/energy_saving/keep_screen_on"))); + setKeepScreenOn(Boolean.parseBoolean(GodotLib.getGlobal("display/window/energy_saving/keep_screen_on"))); }); // Include the returned non-null views in the Godot view hierarchy. |