From 73c6759984cd8bb6d8cf1302e61dea1f0ec428b4 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 27 Nov 2024 16:25:24 +0100 Subject: [PATCH] android: Exit process after activity shutdown Hack to help with #1216 a bit Unfortunately this causes the activity to reopen sometimes, but maybe this can serve as a stopgap for now --- pandatool/src/deploy-stub/android_main.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandatool/src/deploy-stub/android_main.cxx b/pandatool/src/deploy-stub/android_main.cxx index a99c48eb66..d1e140c5f3 100644 --- a/pandatool/src/deploy-stub/android_main.cxx +++ b/pandatool/src/deploy-stub/android_main.cxx @@ -332,4 +332,6 @@ void android_main(struct android_app *app) { // Detach the thread before exiting. activity->vm->DetachCurrentThread(); + + _exit(0); }