mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Prevent Forge process sticking around after exiting on Android devices
This commit is contained in:
@@ -35,6 +35,12 @@ public class Main extends AndroidApplication {
|
||||
return;
|
||||
}
|
||||
|
||||
initialize(Forge.getApp(getClipboard(), assetsDir), true);
|
||||
initialize(Forge.getApp(getClipboard(), assetsDir, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
//ensure process doesn't stick around after exiting
|
||||
android.os.Process.killProcess(android.os.Process.myPid());
|
||||
}
|
||||
}), true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user