From a1a4d12b627883f248985c816aaff7b11f0fc965 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Fri, 6 Nov 2020 22:39:37 +0100 Subject: [PATCH] Android: Call saveSettings in EmulationActivity.onStop I didn't realize that onSaveInstanceState doesn't get called when finishing the activity. --- .../org/dolphinemu/dolphinemu/activities/EmulationActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java index d8d1329259..a001ec6846 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java @@ -257,7 +257,6 @@ public final class EmulationActivity extends AppCompatActivity { if (!isChangingConfigurations()) { - mSettings.saveSettings(null, null); mEmulationFragment.saveTemporaryState(); } outState.putStringArray(EXTRA_SELECTED_GAMES, mPaths); @@ -302,6 +301,7 @@ public final class EmulationActivity extends AppCompatActivity protected void onStop() { super.onStop(); + mSettings.saveSettings(null, null); } public void onTitleChanged()