Skip to content

Commit

Permalink
included suggestions and rebased
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik-Sch committed Apr 12, 2020
1 parent 8099bc6 commit 9c029fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 196 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class QuickAddDialogFragment extends SupportDialogFragment
/**
* The maximum time to add for the first time the "Task completed" info is shown.
*/
private final static int COMPLETION_DELAY_MAX = 1000; // ms
private final static int COMPLETION_DELAY_MAX = 1500; // ms

private final static String ARG_LIST_ID = "list_id";
private final static String ARG_PARENT_ID = "parent_id";
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.dmfs.android.contentpal.predicates.ReferringTo;
import org.dmfs.android.contentpal.rowsets.DelegatingRowSet;
import org.dmfs.android.contentpal.rowsets.QueryRowSet;
import org.dmfs.android.contentpal.views.Sorted;
import org.dmfs.jems.optional.Optional;
import org.dmfs.jems.optional.elementary.Present;
import org.dmfs.tasks.contract.TaskContract.Tasks;
Expand All @@ -38,12 +39,15 @@
public final class Subtasks extends DelegatingRowSet<Tasks>
{

@SuppressWarnings("unchecked")
public Subtasks(@NonNull View<Tasks> view,
@NonNull Projection<? super Tasks> projection,
@NonNull RowReference<Tasks> parentTask)
{
super(new QueryRowSetSorting<>(view, projection, new ReferringTo<>(Tasks.PARENT_ID, parentTask), new Present(Tasks.STATUS + ", " + Tasks.TITLE)));
super(
new QueryRowSet<>(
new Sorted<>(Tasks.PERCENT_COMPLETE + ", " + Tasks.TITLE, view),
projection,
new ReferringTo<>(Tasks.PARENT_ID, parentTask)));
}

}

0 comments on commit 9c029fc

Please sign in to comment.