Browse Source

Fix parsing of the `keep_screen_on` display setting

Fredia Huya-Kouadio 2 years ago
parent
commit
3c75887d41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/android/java/lib/src/org/godotengine/godot/Godot.java

+ 1 - 1
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.