From a97e7d5f05c7da6aa4cac6d8bcd2e9a9f40ddd0b Mon Sep 17 00:00:00 2001 From: fred-boy Date: Sun, 22 Apr 2018 16:39:12 +0700 Subject: [PATCH] Fix exit on back button --- android/src/ru/deadsoftware/cavecraft/AndroidLauncher.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/src/ru/deadsoftware/cavecraft/AndroidLauncher.java b/android/src/ru/deadsoftware/cavecraft/AndroidLauncher.java index 38dfb88..aed5e8e 100644 --- a/android/src/ru/deadsoftware/cavecraft/AndroidLauncher.java +++ b/android/src/ru/deadsoftware/cavecraft/AndroidLauncher.java @@ -15,4 +15,8 @@ public class AndroidLauncher extends AndroidApplication { config.useImmersiveMode = true; initialize(new CaveGame(true), config); } + + @Override + public void onBackPressed() { + } } -- 2.29.2