diff --git a/src/main/java/de/dennisguse/opentracks/settings/PreferencesUtils.java b/src/main/java/de/dennisguse/opentracks/settings/PreferencesUtils.java index dd7651dd2..6ee12bcf3 100644 --- a/src/main/java/de/dennisguse/opentracks/settings/PreferencesUtils.java +++ b/src/main/java/de/dennisguse/opentracks/settings/PreferencesUtils.java @@ -82,6 +82,18 @@ public static void initPreferences(final Context context, final Resources resour PreferencesOpenHelper.newInstance(PREFERENCES_VERSION).check(); } + public static SharedPreferences getDefaultSharedPreferences(){ + return PreferencesUtils.sharedPreferences; + } + + public static Resources getDefaultResources(){ + return PreferencesUtils.resources; + } + + public static int getDefaultPreferenceVersion(){ + return PreferencesUtils.PREFERENCES_VERSION; + } + public static void registerOnSharedPreferenceChangeListener(SharedPreferences.OnSharedPreferenceChangeListener changeListener) { sharedPreferences.registerOnSharedPreferenceChangeListener(changeListener); changeListener.onSharedPreferenceChanged(sharedPreferences, null);