StartPlayingScreen.java renderingSettingScreen creation patchup, checks if exists and switches to if does
@@ -104,8 +104,12 @@ public void initialise() {
});
WidgetUtil.trySubscribe(this, "renderingSettings", button -> {
- final RenderingModuleSettingScreen renderingModuleSettingScreen = getManager().createScreen(RenderingModuleSettingScreen.ASSET_URI, RenderingModuleSettingScreen.class);
+ RenderingModuleSettingScreen renderingModuleSettingScreen = (RenderingModuleSettingScreen) getManager().getScreen(RenderingModuleSettingScreen.ASSET_URI);
+ if (renderingModuleSettingScreen == null) {
+ renderingModuleSettingScreen = getManager().createScreen(RenderingModuleSettingScreen.ASSET_URI, RenderingModuleSettingScreen.class);
renderingModuleSettingScreen.setSubContext(this.subContext);
+ renderingModuleSettingScreen.postInit();
+ }
triggerForwardAnimation(renderingModuleSettingScreen);
});
}
