You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Fix parsing of the keep_screen_on display setting
This commit is contained in:
@@ -299,7 +299,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
|
|||||||
for (GodotPlugin plugin : pluginRegistry.getAllPlugins()) {
|
for (GodotPlugin plugin : pluginRegistry.getAllPlugins()) {
|
||||||
plugin.onRegisterPluginWithGodotNative();
|
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.
|
// Include the returned non-null views in the Godot view hierarchy.
|
||||||
|
|||||||
Reference in New Issue
Block a user