From: fredboy Date: Thu, 18 Apr 2024 14:11:10 +0000 (+0700) Subject: Fix process not finishing when closed by system X-Git-Tag: alpha0.5.2~13 X-Git-Url: https://deadsoftware.ru/gitweb?a=commitdiff_plain;h=13941ab2c11b9a8d6d6bbd9806187128db15ed4e;hp=462f97f8da742fe35f516fec00ca9a581d688e7a;p=cavedroid.git Fix process not finishing when closed by system --- 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(); + } + } }