Skip to content

Commit e14826d

Browse files
author
Nik-Sch
committed
refinements of quickAddDialog
1 parent 3bcf760 commit e14826d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opentasks/src/main/java/org/dmfs/tasks/QuickAddDialogFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public class QuickAddDialogFragment extends SupportDialogFragment
7979
/**
8080
* The maximum time to add for the first time the "Task completed" info is shown.
8181
*/
82-
private final static int COMPLETION_DELAY_MAX = 1500; // ms
82+
private final static int COMPLETION_DELAY_MAX = 1000; // ms
8383

8484
private final static String ARG_LIST_ID = "list_id";
8585
private final static String ARG_PARENT_ID = "parent_id";
@@ -323,7 +323,7 @@ public boolean onEditorAction(TextView v, int actionId, KeyEvent event)
323323
{
324324
if (EditorInfo.IME_ACTION_DONE == actionId)
325325
{
326-
notifyUser(true /* close afterwards */);
326+
notifyUser(mParentId == -1 /* close if no parent */);
327327
createTask();
328328
return true;
329329
}

0 commit comments

Comments
 (0)