mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-28 12:17:57 +03:00
PreferenceManager: fix default preferences xml name
This commit is contained in:
parent
9f93f95f4d
commit
bb7eb461c8
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue