By replacing android.os.Process.killProcess() with MainActivity.finish() in the method MainScene.exit() that does pretty much the same but also removes all fragments.
exit() is called when the user clicks on Exit from the main menu or when the user clicks on the close button from the notification.
To produce that bug in pre-release 3:
Click Play and Settings at the same time.
Close the Settings Menu
Open Mod Menu
Then minimize the game, and close it from the notification.
Basically solves this bug:
By replacing
android.os.Process.killProcess()
withMainActivity.finish()
in the methodMainScene.exit()
that does pretty much the same but also removes all fragments.exit()
is called when the user clicks on Exit from the main menu or when the user clicks on the close button from the notification.To produce that bug in pre-release 3: