osudroid / osu-droid

http://osudroid.moe
Apache License 2.0
507 stars 76 forks source link

Fix for fragments still showing after game exit. #203

Closed Reco1I closed 1 year ago

Reco1I commented 1 year ago

Basically solves this bug:

Screenshot_2022-07-14-22-08-20-758_ru nsu ccfit zuev osuplus

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:

  1. Click Play and Settings at the same time.
  2. Close the Settings Menu
  3. Open Mod Menu
  4. Then minimize the game, and close it from the notification.
  5. Now start the game again and you get it.