You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
PreferenceManager: fix default preferences xml name
This commit is contained in:
@@ -6,7 +6,7 @@ import android.content.SharedPreferences;
|
|||||||
|
|
||||||
public class PreferenceManager {
|
public class PreferenceManager {
|
||||||
public static SharedPreferences getDefaultSharedPreferences(Context context) {
|
public static SharedPreferences getDefaultSharedPreferences(Context context) {
|
||||||
return Context.this_application.getSharedPreferences("default", 0); // is this correct?
|
return Context.this_application.getSharedPreferences(context.getPackageName() + "_preferences", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setDefaultValues(Context context, int i, boolean b) {
|
public static void setDefaultValues(Context context, int i, boolean b) {
|
||||||
|
|||||||
Reference in New Issue
Block a user