Skip to content

Commit

Permalink
refinements of quickAddDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik-Sch committed Apr 12, 2020
1 parent c950f34 commit 8099bc6
Showing 1 changed file with 2 additions and 2 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 = 1500; // ms
private final static int COMPLETION_DELAY_MAX = 1000; // ms

private final static String ARG_LIST_ID = "list_id";
private final static String ARG_PARENT_ID = "parent_id";
Expand Down Expand Up @@ -323,7 +323,7 @@ public boolean onEditorAction(TextView v, int actionId, KeyEvent event)
{
if (EditorInfo.IME_ACTION_DONE == actionId)
{
notifyUser(true /* close afterwards */);
notifyUser(mParentId == -1 /* close if no parent */);
createTask();
return true;
}
Expand Down

0 comments on commit 8099bc6

Please sign in to comment.