[Android] Change the names of the functions responsible for loading/saving config values in UserPreferences.java. Makes readability better, since they have names that actually go with each other now. LoadIniToPrefs() and SavePrefsToIni().
This commit is contained in:
parent
efac4bc608
commit
a317391e3d
|
@ -83,7 +83,7 @@ public final class DolphinEmulator extends Activity
|
|||
|
||||
// Load the configuration keys set in the Dolphin ini and gfx ini files
|
||||
// into the application's shared preferences.
|
||||
UserPreferences.LoadDolphinConfigToPrefs(this);
|
||||
UserPreferences.LoadIniToPrefs(this);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -67,6 +67,6 @@ public final class CPUSettingsFragment extends PreferenceFragment
|
|||
super.onDestroy();
|
||||
|
||||
// When this fragment is destroyed, force the settings to be saved to the ini file.
|
||||
UserPreferences.SaveConfigToDolphinIni(m_activity);
|
||||
UserPreferences.SavePrefsToIni(m_activity);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,11 +22,11 @@ import android.preference.PreferenceManager;
|
|||
public final class UserPreferences
|
||||
{
|
||||
/**
|
||||
* Loads the set config items from the Dolphin config files to the shared preferences of this front-end
|
||||
* Loads the settings stored in the Dolphin ini config files to the shared preferences of this front-end.
|
||||
*
|
||||
* @param ctx The context used to retrieve the SharedPreferences instance.
|
||||
*/
|
||||
public static void LoadDolphinConfigToPrefs(Context ctx)
|
||||
public static void LoadIniToPrefs(Context ctx)
|
||||
{
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);
|
||||
|
||||
|
@ -106,11 +106,11 @@ public final class UserPreferences
|
|||
}
|
||||
|
||||
/**
|
||||
* Writes the config to the Dolphin ini file.
|
||||
* Writes the preferences set in the front-end to the Dolphin ini files.
|
||||
*
|
||||
* @param ctx The context used to retrieve the user settings.
|
||||
* */
|
||||
public static void SaveConfigToDolphinIni(Context ctx)
|
||||
public static void SavePrefsToIni(Context ctx)
|
||||
{
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);
|
||||
|
||||
|
|
|
@ -294,6 +294,6 @@ public final class VideoSettingsFragment extends PreferenceFragment
|
|||
super.onDestroy();
|
||||
|
||||
// When the fragment is done being used, save the settings to the Dolphin ini file.
|
||||
UserPreferences.SaveConfigToDolphinIni(m_activity);
|
||||
UserPreferences.SavePrefsToIni(m_activity);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue