From 73b841c70f1ef1e13343e6dc9809e3aff4ec97d1 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Wed, 3 Jun 2020 08:21:43 -0500 Subject: [PATCH] Show due dates if sort groups are disabled --- app/src/main/java/org/tasks/tasklist/TaskViewHolder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/tasks/tasklist/TaskViewHolder.java b/app/src/main/java/org/tasks/tasklist/TaskViewHolder.java index 99dcc9356..e90ed0f9f 100644 --- a/app/src/main/java/org/tasks/tasklist/TaskViewHolder.java +++ b/app/src/main/java/org/tasks/tasklist/TaskViewHolder.java @@ -247,7 +247,9 @@ public class TaskViewHolder extends RecyclerView.ViewHolder { dueDate.setTextColor(textColorSecondary); } String dateValue; - if (sortMode == SortHelper.SORT_DUE && task.sortGroup != null && newDateTime(task.sortGroup).startOfDay().equals(newDateTime(task.getDueDate()).startOfDay())) { + if (sortMode == SortHelper.SORT_DUE + && task.sortGroup != null + && !preferences.getBoolean(R.string.p_disable_subtasks, false)) { dateValue = task.hasDueTime() ? getTimeString(context, newDateTime(task.getDueDate())) : null; } else {