From 20b3e2cc94357d94af98b73d8b5c81d53a82e43f Mon Sep 17 00:00:00 2001 From: Marcus Brummer Date: Thu, 12 Aug 2021 15:33:51 +0200 Subject: Properly finishes Godot's Android activity when destroyed by the system --- platform/android/java/lib/src/org/godotengine/godot/Godot.java | 1 + 1 file changed, 1 insertion(+) (limited to 'platform/android') diff --git a/platform/android/java/lib/src/org/godotengine/godot/Godot.java b/platform/android/java/lib/src/org/godotengine/godot/Godot.java index 8ffa4a9249..01eb1f1ec8 100644 --- a/platform/android/java/lib/src/org/godotengine/godot/Godot.java +++ b/platform/android/java/lib/src/org/godotengine/godot/Godot.java @@ -842,6 +842,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC } private void forceQuit() { + getActivity().finish(); System.exit(0); } -- cgit v1.2.3