|
|
|
|
@ -56,6 +56,9 @@ public class Preferences {
|
|
|
|
|
if(!prefs.contains(r.getString(R.string.p_colorize))) {
|
|
|
|
|
editor.putBoolean(r.getString(R.string.p_colorize), DEFAULT_COLORIZE);
|
|
|
|
|
}
|
|
|
|
|
if(!prefs.contains(r.getString(R.string.p_notif_vibrate))) {
|
|
|
|
|
editor.putBoolean(r.getString(R.string.p_notif_vibrate), true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setVisibilityPreferences(prefs, editor, r);
|
|
|
|
|
|
|
|
|
|
@ -199,6 +202,13 @@ public class Preferences {
|
|
|
|
|
R.string.p_notif_annoy), DEFAULT_PERSISTENCE_MODE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Get vibration mode setting */
|
|
|
|
|
public static boolean shouldVibrate(Context context) {
|
|
|
|
|
Resources r = context.getResources();
|
|
|
|
|
return getPrefs(context).getBoolean(r.getString(
|
|
|
|
|
R.string.p_notif_vibrate), true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Return # of days to remind by default */
|
|
|
|
|
public static Integer getDefaultReminder(Context context) {
|
|
|
|
|
return getIntegerValue(context, R.string.p_notif_defaultRemind);
|
|
|
|
|
|