瀏覽代碼

Android: Fix parsing `keep_screen_on` setting

Boolean stringification changed in Godot 4.0.

Fixes #67034.

Co-authored-by: Hugo Locurcio <[email protected]>
Rémi Verschelde 2 年之前
父節點
當前提交
eb7c3e1ad3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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("true".equals(GodotLib.getGlobal("display/window/energy_saving/keep_screen_on")));
 		});
 
 		// Include the returned non-null views in the Godot view hierarchy.