Skip to content

Commit

Permalink
Merge pull request #11989 from JosJuice/android-title-on-shutdown
Browse files Browse the repository at this point in the history
Android: Handle game shutdown in onTitleChanged
  • Loading branch information
t895 committed Jun 28, 2023
2 parents 86adfa7 + b5e197e commit e185dbf
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -234,9 +234,14 @@ class EmulationActivity : AppCompatActivity(), ThemeProvider {
menuToastShown = true
}

title = NativeLibrary.GetCurrentTitleDescription()
try {
title = NativeLibrary.GetCurrentTitleDescription()

emulationFragment?.refreshInputOverlay()
emulationFragment?.refreshInputOverlay()
} catch (_: IllegalStateException) {
// Most likely the core delivered an onTitleChanged while emulation was shutting down.
// Let's just ignore it, since we're about to shut down anyway.
}
}

override fun onDestroy() {
Expand Down

0 comments on commit e185dbf

Please sign in to comment.