Tasks are now correctly shown again

This commit is contained in:
BONNEVILLE Geoffroy
2017-12-22 11:48:07 +01:00
parent 6dce3a6262
commit 074cf29d09
2 changed files with 3 additions and 2 deletions

View File

@@ -60,6 +60,8 @@ public class MainFragment extends Fragment implements
assert activity != null; assert activity != null;
activity.setSupportActionBar(toolbar); activity.setSupportActionBar(toolbar);
// TODO: determine whether this is the first startup, and if so, show a tutorial of sorts
// Load task lists // Load task lists
updateTaskLists(activity); updateTaskLists(activity);
SharedPreferences sharedPref = SharedPreferences sharedPref =
@@ -112,7 +114,6 @@ public class MainFragment extends Fragment implements
} }
boolean isLargeLayout = getResources().getBoolean(R.bool.large_layout); boolean isLargeLayout = getResources().getBoolean(R.bool.large_layout);
// TODO: determine whether this is the first startup, and if so, show a tutorial of sorts
// No tasks, show the edit task lists fragment // No tasks, show the edit task lists fragment
if (taskLists.size() == 0) { if (taskLists.size() == 0) {
TaskListsDialogFragment taskListFragment = TaskListsDialogFragment.newInstance(this); TaskListsDialogFragment taskListFragment = TaskListsDialogFragment.newInstance(this);

View File

@@ -59,7 +59,7 @@ public class TasksFragment extends Fragment implements
private static final String TASK_LIST_ID = "task_list_id"; private static final String TASK_LIST_ID = "task_list_id";
private long taskListId = -1; private long taskListId = -1;
private boolean isTodayView = true; private boolean isTodayView = false;
private boolean isHistory = false; private boolean isHistory = false;
private TaskRecyclerViewAdapter taskRecyclerViewAdapter; private TaskRecyclerViewAdapter taskRecyclerViewAdapter;
private View view; private View view;