Simple row style should be used in subtasks mode

pull/14/head
Sam Bosley 12 years ago
parent 884636f872
commit 4057e403ef

@ -194,7 +194,10 @@ public class OrderedListFragmentHelper<LIST> {
public TaskAdapter createTaskAdapter(TodorooCursor<Task> cursor,
AtomicReference<String> sqlQueryTemplate) {
taskAdapter = new DraggableTaskAdapter(fragment, R.layout.task_adapter_row,
int resource = Preferences.getBoolean(R.string.p_taskRowStyle, false) ?
R.layout.task_adapter_row_simple : R.layout.task_adapter_row;
taskAdapter = new DraggableTaskAdapter(fragment, resource,
cursor, sqlQueryTemplate, false, null);
taskAdapter.addOnCompletedTaskListener(new OnCompletedTaskListener() {

Loading…
Cancel
Save