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:
parent
6a4ac74ec4
commit
a1a4d12b62
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue