Skip to content

Commit

Permalink
save game during onstop
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed Jan 21, 2024
1 parent 0844dc9 commit af0ebea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/com/geode/launcher/GeometryDashActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ class GeometryDashActivity : AppCompatActivity(), Cocos2dxHelper.Cocos2dxHelperL
super.onPause()
mIsOnPause = true
BaseRobTopActivity.isPaused = true
}

override fun onStop() {
super.onStop()
if (mIsRunning) {
pauseGame()
}
Expand Down

0 comments on commit af0ebea

Please sign in to comment.