diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index de5f006c..6f77432f 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -68,6 +68,7 @@ android:configChanges="orientation|screenSize|uiMode" android:exported="true" android:launchMode="singleTask" + android:process=":emulationProcess" android:parentActivityName=".MainActivity"> diff --git a/app/src/main/java/emu/skyline/EmulationActivity.kt b/app/src/main/java/emu/skyline/EmulationActivity.kt index 76bf84d1..1f7c7c80 100644 --- a/app/src/main/java/emu/skyline/EmulationActivity.kt +++ b/app/src/main/java/emu/skyline/EmulationActivity.kt @@ -219,7 +219,7 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo shouldFinish = false if (returnToMain) startActivity(Intent(applicationContext, MainActivity::class.java).setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)) - finishAffinity() + Process.killProcess(Process.myPid()) } } }