From 13941ab2c11b9a8d6d6bbd9806187128db15ed4e Mon Sep 17 00:00:00 2001 From: fredboy Date: Thu, 18 Apr 2024 21:11:10 +0700 Subject: [PATCH 1/1] Fix process not finishing when closed by system --- core/src/ru/deadsoftware/cavedroid/CaveGame.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/ru/deadsoftware/cavedroid/CaveGame.java b/core/src/ru/deadsoftware/cavedroid/CaveGame.java index 0fdf1ec..a4a4934 100644 --- a/core/src/ru/deadsoftware/cavedroid/CaveGame.java +++ b/core/src/ru/deadsoftware/cavedroid/CaveGame.java @@ -86,4 +86,10 @@ public class CaveGame extends Game { setScreen(mMainComponent.getMenuScreen()); } + @Override + public void dispose() { + if (screen != null) { + screen.dispose(); + } + } } -- 2.29.2