Category name letter casing change not allowed when renaming (#8274)

* adding the feature

* minor reordering

* Changes from review

* including gradle.properites.swp

* Update app/src/main/java/eu/kanade/domain/category/model/Category.kt

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
This commit is contained in:
d-najd 2022-10-22 21:09:38 +02:00 committed by GitHub
parent 2ab744c525
commit 42bf91779d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

BIN
.gradle.properties.swp Normal file

Binary file not shown.

View File

@ -18,5 +18,5 @@ data class Category(
}
internal fun List<Category>.anyWithName(name: String): Boolean {
return any { name.equals(it.name, ignoreCase = true) }
return any { name == it.name }
}