From 47c78fb62f39744ec71ed01428d8a4bbaa551066 Mon Sep 17 00:00:00 2001 From: curche <72807749+curche@users.noreply.github.com> Date: Mon, 4 Oct 2021 13:03:56 +0530 Subject: [PATCH] use better kotlin syntactic sugar --- .../main/java/eu/kanade/tachiyomi/util/system/LocaleHelper.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/system/LocaleHelper.kt b/app/src/main/java/eu/kanade/tachiyomi/util/system/LocaleHelper.kt index 4d4b7a3935..735945a144 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/system/LocaleHelper.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/system/LocaleHelper.kt @@ -18,8 +18,7 @@ object LocaleHelper { return when (lang) { SourcePresenter.LAST_USED_KEY -> context.getString(R.string.last_used_source) SourcePresenter.PINNED_KEY -> context.getString(R.string.pinned_sources) - "" -> context.getString(R.string.other_source) - "other" -> context.getString(R.string.other_source) + "","other" -> context.getString(R.string.other_source) "all" -> context.getString(R.string.all_lang) else -> getDisplayName(lang) } @@ -34,7 +33,6 @@ object LocaleHelper { if (lang == null) { return "" } - val locale = if (lang.isEmpty()) { LocaleListCompat.getAdjustedDefault()[0] } else {