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.1~1 X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=8305b3380d9a31acbba43df1d52a7bca8c775bc9;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(); + } + } }