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) {
TagData existing = tagDataDao.getTagByName(newName);
return existing != null && tagData.getId() != existing.getId();
return (isNewTag || !newName.equalsIgnoreCase(tagData.getName()))
&& tagDataDao.getTagByName(newName) != null;
}
private void save() {

Loading…
Cancel
Save