forked from upstream-mirrors/OpenTracks
Tests can now be executed again on pre-Android 12.
This commit is contained in:
@@ -75,8 +75,8 @@ public class PreferencesUtils {
|
||||
/**
|
||||
* Must be called during application startup.
|
||||
*/
|
||||
public static void initPreferences(final Context context, final Resources resources) {
|
||||
PreferencesUtils.resources = resources;
|
||||
public static void initPreferences(final Context context) {
|
||||
PreferencesUtils.resources = context.getResources();
|
||||
PreferencesUtils.sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
|
||||
PreferencesOpenHelper.newInstance(PREFERENCES_VERSION).check();
|
||||
|
||||
Reference in New Issue
Block a user