[Android] Save to the config file upon leaving the settings activity.

This commit is contained in:
Lioncash 2013-10-11 18:18:59 -04:00
parent ce42fccdc7
commit 8c7437f74f
1 changed files with 10 additions and 1 deletions

View File

@ -11,10 +11,10 @@ import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBar.Tab;
import android.support.v7.app.ActionBar.TabListener;
import android.support.v7.app.ActionBarActivity;
import org.retroarch.R;
import org.retroarch.browser.preferences.fragments.util.PreferenceListFragment;
import org.retroarch.browser.preferences.fragments.util.PreferenceListFragment.OnPreferenceAttachedListener;
import org.retroarch.browser.preferences.util.UserPreferences;
/**
* {@link ActionBarActivity} responsible for handling all of the {@link PreferenceListFragment}s.
@ -62,6 +62,15 @@ public final class PreferenceActivity extends ActionBarActivity implements TabLi
} );
}
@Override
public void onDestroy()
{
super.onDestroy();
// Update the config file upon closing the settings.
UserPreferences.updateConfigFile(this);
}
@Override
public void onTabSelected(Tab tab, FragmentTransaction ft)
{