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:
Ygor Dreyer authored and GitHub committed 2026-10-12 19:08:57 +02:00
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()