diff --git a/opentasks/src/main/java/org/dmfs/tasks/EditTaskFragment.java b/opentasks/src/main/java/org/dmfs/tasks/EditTaskFragment.java index 2eb3cda7b..7090aac4a 100644 --- a/opentasks/src/main/java/org/dmfs/tasks/EditTaskFragment.java +++ b/opentasks/src/main/java/org/dmfs/tasks/EditTaskFragment.java @@ -678,7 +678,7 @@ public void saveAndExit() if (mValues.isInsert() || mValues.isUpdate()) { - if (TextUtils.isEmpty(TaskFieldAdapters.TITLE.get(mValues))) + if (TextUtils.isEmpty(TaskFieldAdapters.TITLE.get(mValues)) || TaskFieldAdapters.TITLE.get(mValues).trim().equals("")) { // there is no title, try to set one from the description or check list @@ -714,7 +714,7 @@ public void saveAndExit() } } - if (!TextUtils.isEmpty(TaskFieldAdapters.TITLE.get(mValues)) || mValues.isUpdate()) + if ((!TextUtils.isEmpty(TaskFieldAdapters.TITLE.get(mValues)) && !TaskFieldAdapters.TITLE.get(mValues).trim().equals("")) || mValues.isUpdate()) { if (mValues.isInsert()) {