BREAKING CHANGE: Moved to getDefaultSharedPreferences().

This commit is contained in:
Dennis Guse
2019-08-06 18:33:52 +02:00
parent 7ba771c417
commit a53b3288f7
2 changed files with 2 additions and 5 deletions
@@ -27,10 +27,6 @@ public class Constants {
* Maximum number of waypoints that will be loaded at one time.
*/
public static final int MAX_LOADED_WAYPOINTS_POINTS = 10000;
/**
* The settings file name.
*/
public static final String SETTINGS_NAME = "SettingsActivity";
private Constants() {
}
@@ -19,6 +19,7 @@ package de.dennisguse.opentracks.util;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.preference.PreferenceManager;
import de.dennisguse.opentracks.Constants;
import de.dennisguse.opentracks.R;
@@ -94,7 +95,7 @@ public class PreferencesUtils {
}
public static SharedPreferences getSharedPreferences(Context context) {
return context.getSharedPreferences(Constants.SETTINGS_NAME, Context.MODE_PRIVATE);
return PreferenceManager.getDefaultSharedPreferences(context);
}
/**