Skip to content

Commit

Permalink
Android: Fix parsing keep_screen_on setting
Browse files Browse the repository at this point in the history
Boolean stringification changed in Godot 4.0.

Fixes #67034.

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
  • Loading branch information
akien-mga and Calinou committed Nov 17, 2022
1 parent 0b27173 commit eb7c3e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private boolean onVideoInit() {
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.
Expand Down

0 comments on commit eb7c3e1

Please sign in to comment.