Android: Call saveSettings in EmulationActivity.onStop

I didn't realize that onSaveInstanceState doesn't get called
when finishing the activity.
This commit is contained in:
JosJuice 2020-11-06 22:39:37 +01:00
parent 6a4ac74ec4
commit a1a4d12b62
1 changed files with 1 additions and 1 deletions

View File

@ -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()