Sfoglia il codice sorgente

Merge pull request #68786 from akien-mga/android-fix-keep_screen_on

Android: Fix parsing `keep_screen_on` setting
Rémi Verschelde 2 anni fa
parent
commit
49cc12bf89

+ 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()) {
 			for (GodotPlugin plugin : pluginRegistry.getAllPlugins()) {
 				plugin.onRegisterPluginWithGodotNative();
 				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.
 		// Include the returned non-null views in the Godot view hierarchy.