From 39e924aec852ecef9cc04619274862cf845642de Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Sun, 24 Oct 2021 00:11:38 +0530 Subject: [PATCH] Resume rather than relaunch when same shortcut is used --- app/src/main/java/emu/skyline/EmulationActivity.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/emu/skyline/EmulationActivity.kt b/app/src/main/java/emu/skyline/EmulationActivity.kt index 6c87b3a1..9987295e 100644 --- a/app/src/main/java/emu/skyline/EmulationActivity.kt +++ b/app/src/main/java/emu/skyline/EmulationActivity.kt @@ -307,8 +307,10 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo */ override fun onNewIntent(intent : Intent?) { super.onNewIntent(intent!!) - setIntent(intent) - executeApplication(intent) + if (getIntent().data != intent.data) { + setIntent(intent) + executeApplication(intent) + } } override fun onDestroy() {