Ported: Fix parsing of the keep_screen_on display setting.

- m4gr3d
d08e057194
This commit is contained in:
Relintai 2022-11-30 18:44:51 +01:00
parent 07109aa595
commit d0bb264cc2

View File

@ -388,7 +388,8 @@ public class Pandemonium extends Fragment implements SensorEventListener, IDownl
for (PandemoniumPlugin plugin : pluginRegistry.getAllPlugins()) {
plugin.onRegisterPluginWithPandemoniumNative();
}
setKeepScreenOn("True".equals(PandemoniumLib.getGlobal("display/window/energy_saving/keep_screen_on")));
setKeepScreenOn(Boolean.parseBoolean(PandemoniumLib.getGlobal("display/window/energy_saving/keep_screen_on")));
// The Pandemonium Android plugins are setup on completion of PandemoniumLib.setup
mainThreadHandler.post(() -> {