diff --git a/forge-gui-mobile-dev/src/forge/app/Main.java b/forge-gui-mobile-dev/src/forge/app/Main.java index a8e9c424299..8714712af23 100644 --- a/forge-gui-mobile-dev/src/forge/app/Main.java +++ b/forge-gui-mobile-dev/src/forge/app/Main.java @@ -96,6 +96,9 @@ public void exit() { @Override public void closeSplashScreen() { + // FIXME: on Linux system it can't close splashscreen image or crash with SIGSEGV? How come it works on other OS? + if (OperatingSystem.isUnix() || OperatingSystem.isSolaris()) + return; //could throw exception.. try { Optional.ofNullable(SplashScreen.getSplashScreen()).ifPresent(SplashScreen::close); diff --git a/forge-gui-mobile/src/forge/Forge.java b/forge-gui-mobile/src/forge/Forge.java index 669008d9155..7dafac0f1e7 100644 --- a/forge-gui-mobile/src/forge/Forge.java +++ b/forge-gui-mobile/src/forge/Forge.java @@ -159,6 +159,7 @@ public static Localizer getLocalizer() { public void create() { //install our error handler ExceptionHandler.registerErrorHandling(); + getDeviceAdapter().closeSplashScreen(); GuiBase.setIsAndroid(Gdx.app.getType() == Application.ApplicationType.Android); @@ -257,8 +258,6 @@ else if (getForgePreferences().getPref(FPref.UI_ENABLE_BORDER_MASKING).equals("f /* call preloadExtendedArt here, if we put it above we will * * get error: No OpenGL context found in the current thread. */ preloadExtendedArt(); - // should be after create method but try to close this at a later time. - getDeviceAdapter().closeSplashScreen(); }); }; //see if app or assets need updating