Fix check for clashing tag name

pull/848/head
Alex Baker 7 years ago
parent 81bd35ecf5
commit 3371b16a68

@ -171,8 +171,8 @@ public class TagSettingsActivity extends ThemedInjectingAppCompatActivity
} }
private boolean clashes(String newName) { private boolean clashes(String newName) {
TagData existing = tagDataDao.getTagByName(newName); return (isNewTag || !newName.equalsIgnoreCase(tagData.getName()))
return existing != null && tagData.getId() != existing.getId(); && tagDataDao.getTagByName(newName) != null;
} }
private void save() { private void save() {

Loading…
Cancel
Save