Merge pull request #11989 from JosJuice/android-title-on-shutdown
Android: Handle game shutdown in onTitleChanged
This commit is contained in:
commit
e185dbf857
|
@ -234,9 +234,14 @@ class EmulationActivity : AppCompatActivity(), ThemeProvider {
|
|||
menuToastShown = true
|
||||
}
|
||||
|
||||
try {
|
||||
title = NativeLibrary.GetCurrentTitleDescription()
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue