Android: Handle game shutdown in onTitleChanged
This commit is contained in:
parent
51dfc03805
commit
b5e197e2dc
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue