mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Cache process ID before calling finish
This commit is contained in:
@@ -54,8 +54,9 @@ public class Main extends AndroidApplication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//ensure process doesn't stick around after exiting
|
//ensure process doesn't stick around after exiting
|
||||||
|
int pid = android.os.Process.myPid();
|
||||||
finish();
|
finish();
|
||||||
android.os.Process.killProcess(android.os.Process.myPid());
|
android.os.Process.killProcess(pid);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user