File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
en/hanime/src/eu/kanade/tachiyomi/animeextension/en/hanime
kuronime/src/eu/kanade/tachiyomi/animeextension/id/kuronime
neonime/src/eu/kanade/tachiyomi/animeextension/id/neonime Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -228,13 +228,13 @@ class Hanime :
228228 filter.state.forEach { tag ->
229229 if (tag.isIncluded()) {
230230 includedTags.add(
231- " \" " + tag.id.toLowerCase (
231+ " \" " + tag.id.lowercase (
232232 Locale .US ,
233233 ) + " \" " ,
234234 )
235235 } else if (tag.isExcluded()) {
236236 blackListedTags.add(
237- " \" " + tag.id.toLowerCase (
237+ " \" " + tag.id.lowercase (
238238 Locale .US ,
239239 ) + " \" " ,
240240 )
@@ -243,7 +243,7 @@ class Hanime :
243243 }
244244
245245 is TagInclusionMode -> {
246- tagsMode = filter.values[filter.state].toUpperCase (Locale .US )
246+ tagsMode = filter.values[filter.state].uppercase (Locale .US )
247247 }
248248
249249 is SortFilter -> {
@@ -262,7 +262,7 @@ class Hanime :
262262 filter.state.forEach { brand ->
263263 if (brand.state) {
264264 brands.add(
265- " \" " + brand.id.toLowerCase (
265+ " \" " + brand.id.lowercase (
266266 Locale .US ,
267267 ) + " \" " ,
268268 )
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class Kuronime :
4949 return anime
5050 }
5151
52- private fun parseStatus (statusString : String ): Int = when (statusString.toLowerCase (Locale .US )) {
52+ private fun parseStatus (statusString : String ): Int = when (statusString.lowercase (Locale .US )) {
5353 " ongoing" -> SAnime .ONGOING
5454 " completed" -> SAnime .COMPLETED
5555 else -> SAnime .UNKNOWN
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ class NeoNime :
4545 .getOrNull() ? : 0L
4646 }
4747 private fun parseStatus (statusString : String ): Int = when {
48- statusString.toLowerCase (Locale .US ).contains(" ongoing" ) -> SAnime .ONGOING
49- statusString.toLowerCase (Locale .US ).contains(" completed" ) -> SAnime .COMPLETED
48+ statusString.lowercase (Locale .US ).contains(" ongoing" ) -> SAnime .ONGOING
49+ statusString.lowercase (Locale .US ).contains(" completed" ) -> SAnime .COMPLETED
5050 else -> SAnime .UNKNOWN
5151 }
5252
You can’t perform that action at this time.
0 commit comments