From 42bf91779d590be6c7b921e71685852bc831513c Mon Sep 17 00:00:00 2001 From: d-najd <59766732+d-najd@users.noreply.github.com> Date: Sat, 22 Oct 2022 21:09:38 +0200 Subject: [PATCH] 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> --- .gradle.properties.swp | Bin 0 -> 4096 bytes .../eu/kanade/domain/category/model/Category.kt | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 .gradle.properties.swp diff --git a/.gradle.properties.swp b/.gradle.properties.swp new file mode 100644 index 0000000000000000000000000000000000000000..7b05940e812b1c769da17b5b25d40558499a37be GIT binary patch literal 4096 zcmeIxy$ZrG5C`zQfFSw;e#~jA;@~JqRZuMWfon`cJ!w9OQFQSo9DP~aE*;(FZaV&V z!|{VV#fRm(Gl^nSRFja=B@ypqLOxqUBxnd_{-dfrx=3lt?~sEvbj~%HjIOu~*3rS3 zibwn)uWFIathi}q!j(;p^cLhc+$7l4+lvxKy5r&uR>Q_a28QP>l)01BW03ZTH>3w!}UH8=?X literal 0 HcmV?d00001 diff --git a/app/src/main/java/eu/kanade/domain/category/model/Category.kt b/app/src/main/java/eu/kanade/domain/category/model/Category.kt index 870cab2b6..fe89f74ae 100644 --- a/app/src/main/java/eu/kanade/domain/category/model/Category.kt +++ b/app/src/main/java/eu/kanade/domain/category/model/Category.kt @@ -18,5 +18,5 @@ data class Category( } internal fun List.anyWithName(name: String): Boolean { - return any { name.equals(it.name, ignoreCase = true) } + return any { name == it.name } }