Fix issue causing the last edited project to open while switching to another one.

Fixes https://github.com/godotengine/godot/issues/76562
This commit is contained in:
Fredia Huya-Kouadio 2023-06-11 21:04:46 -07:00
parent dcd31a25b4
commit a951a14b16
3 changed files with 59 additions and 17 deletions

View file

@ -90,7 +90,7 @@ public final class ProcessPhoenix extends Activity {
*/
public static void forceQuit(Activity activity, int pid) {
Process.killProcess(pid); // Kill original main process
activity.finish();
activity.finishAndRemoveTask();
Runtime.getRuntime().exit(0); // Kill kill kill!
}