summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorMarcus Brummer <mbrlabs7@gmail.com>2021-08-12 15:33:51 +0200
committerMarcus Brummer <mbrlabs7@gmail.com>2021-08-12 15:33:51 +0200
commit20b3e2cc94357d94af98b73d8b5c81d53a82e43f (patch)
treee208f45d03cbbf6e71f93e3bd25ee77aef6dba97 /platform/android
parent975a63e6f78d98d67cf2753a9cb7b78f2999156d (diff)
Properly finishes Godot's Android activity when destroyed by the system
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/java/lib/src/org/godotengine/godot/Godot.java1
1 files changed, 1 insertions, 0 deletions
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);
}