mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-11-13 01:29:59 +01:00
android: Fix closing a game launched from a home screen shortcut (#2658)
Shortcuts set the launchedFromShortcut extra, but EmulationActivity checked launched_from_shortcut, so finishAffinity() never ran and closing the game returned to the game list instead of the home screen.
This commit is contained in:
1 parent
2061a991fb
commit
f718556525
1 file changed
+1
-1
@@ -74,7 +74,7 @@ class EmulationActivity : AppCompatActivity() {
|
||||
lateinit var secondaryDisplayManager: SecondaryDisplay
|
||||
|
||||
private val onShutdown = Runnable {
|
||||
if (intent.getBooleanExtra("launched_from_shortcut", false)) {
|
||||
if (intent.getBooleanExtra("launchedFromShortcut", false)) {
|
||||
finishAffinity()
|
||||
} else {
|
||||
this.finish()
|
||||
|
||||
Reference in new issue
Block a user