mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
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
|
||||
}
|
||||
|
||||
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…
x
Reference in New Issue
Block a user