Subtask aded in detailedView#931
Conversation
|
First of all, thanks for your efforts. I appreciate that. I really like the idea of using quick add to add subtasks.
I hope to get this sorted over the holidays. In the meantime I have only a few comments on your PR. |
| * The maximum time to add for the first time the "Task completed" info is shown. | ||
| */ | ||
| private final static int COMPLETION_DELAY_MAX = 1500; // ms | ||
| private final static int COMPLETION_DELAY_MAX = 1000; // ms |
There was a problem hiding this comment.
I'd like to keep this delay a bit longer so new users will notice the confirmation. Please note that the actual delay gets shorter with every confirmation shown.
There was a problem hiding this comment.
Oh, I did not notice that, that's fine
| @NonNull RowReference<Tasks> parentTask) | ||
| { | ||
| super(new QueryRowSet<>(view, projection, new ReferringTo<>(Tasks.PARENT_ID, parentTask))); | ||
| super(new QueryRowSetSorting<>(view, projection, new ReferringTo<>(Tasks.PARENT_ID, parentTask), new Present(Tasks.STATUS + ", " + Tasks.TITLE))); |
There was a problem hiding this comment.
The custom QueryRowSetSorting is not necessary. You can apply the Sorted decorator to view giving you the same result. Check this out:
super(
new QueryRowSet<>(
new Sorted<>(Tasks.STATUS + ", " + Tasks.TITLE, view),
projection,
new ReferringTo<>(Tasks.PARENT_ID, parentTask)));
There was a problem hiding this comment.
Uh, that's awesome, thank you, I will adjust these changes tomorrow
|
I rebased from the original PR #469, included your suggestions and have a few further ideas/bugs:
|
|
Please see my comments regarding your points:
I'd also like to reconsider deleting subtasks when deleting the parent. This may not always be the best choice. It might be better to ask the user whether subtasks should be kept and converted to "top-level" tasks or if they should be deleted too. |
|
Ok, all of your points sound reasonable. Is there something I could further do? |

As mentioned in #443, I made some changes to the PR #469 including quicker adding/checking/deleting of subtasks