List of usage examples for android.preference PreferenceManager getDefaultSharedPreferences
public static SharedPreferences getDefaultSharedPreferences(Context context)
From source file:Main.java
public static String getImage(Context context) { return PreferenceManager.getDefaultSharedPreferences(context).getString("image_path", null); }
From source file:Main.java
public static int getPositionX(Context context) { return PreferenceManager.getDefaultSharedPreferences(context).getInt("fa_positionX", 0); }
From source file:Main.java
public static int getPositionY(Context context) { return PreferenceManager.getDefaultSharedPreferences(context).getInt("fa_positionY", 0); }
From source file:Main.java
public static void setHasSeenWhatsNew(Context context) { PreferenceManager.getDefaultSharedPreferences(context).edit().putBoolean("guide_showed", true).apply(); }
From source file:Main.java
public static int getFaIconSize(Context context) { return PreferenceManager.getDefaultSharedPreferences(context).getInt("fa_icon_size", 20); }
From source file:Main.java
public static String getGapSize(Context context) { return PreferenceManager.getDefaultSharedPreferences(context).getString("gap", "medium"); }
From source file:Main.java
public static String getATEKey(Context context) { return PreferenceManager.getDefaultSharedPreferences(context).getBoolean("dark_theme", false) ? "dark_theme" : "light_theme"; }
From source file:Main.java
public static boolean isAutoOrder(Context context) { return PreferenceManager.getDefaultSharedPreferences(context).getBoolean("auto_order", false); }
From source file:Main.java
public static void setImage(Context context, String path) { PreferenceManager.getDefaultSharedPreferences(context).edit().putString("image_path", path).apply(); }
From source file:Main.java
public static boolean isAutoStart(Context context) { return PreferenceManager.getDefaultSharedPreferences(context).getBoolean("autoStart", true); }