DEADSOFTWARE

Fix process not finishing when closed by system
authorfredboy <fredboy@protonmail.com>
Thu, 18 Apr 2024 14:11:10 +0000 (21:11 +0700)
committerfredboy <fredboy@protonmail.com>
Thu, 18 Apr 2024 14:11:10 +0000 (21:11 +0700)
core/src/ru/deadsoftware/cavedroid/CaveGame.java

index 0fdf1ecd1252d8bd526e91d5cbaac59bb9d39953..a4a493414beef30c0e6aa741c4f0eb5a3b867d71 100644 (file)
@@ -86,4 +86,10 @@ public class CaveGame extends Game {
         setScreen(mMainComponent.getMenuScreen());
     }
 
+    @Override
+    public void dispose() {
+        if (screen != null) {
+            screen.dispose();
+        }
+    }
 }