|
|
|
@ -206,11 +206,7 @@ public class TaskDao extends DatabaseDao<Task> {
|
|
|
|
|
Task.URGENCY_NONE);
|
|
|
|
|
item.setValue(Task.DUE_DATE, Task.createDueDate(setting, 0));
|
|
|
|
|
}
|
|
|
|
|
if(!item.containsValue(Task.HIDE_UNTIL)) {
|
|
|
|
|
int setting = Preferences.getIntegerFromString(R.string.p_default_hideUntil_key,
|
|
|
|
|
Task.HIDE_UNTIL_NONE);
|
|
|
|
|
item.setValue(Task.HIDE_UNTIL, item.createHideUntil(setting, 0));
|
|
|
|
|
}
|
|
|
|
|
createDefaultHideUntil(item);
|
|
|
|
|
|
|
|
|
|
setDefaultReminders(item);
|
|
|
|
|
|
|
|
|
@ -223,6 +219,14 @@ public class TaskDao extends DatabaseDao<Task> {
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void createDefaultHideUntil(Task item) {
|
|
|
|
|
if(!item.containsValue(Task.HIDE_UNTIL)) {
|
|
|
|
|
int setting = Preferences.getIntegerFromString(R.string.p_default_hideUntil_key,
|
|
|
|
|
Task.HIDE_UNTIL_NONE);
|
|
|
|
|
item.setValue(Task.HIDE_UNTIL, item.createHideUntil(setting, 0));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void userRetentionMetrics() {
|
|
|
|
|
if(Preferences.getBoolean(AstridPreferences.P_FIRST_TASK, true)) {
|
|
|
|
|
StatisticsService.reportEvent(StatisticsConstants.USER_FIRST_TASK);
|
|
|
|
|