From 19f39fcdb0f23a2a88c85d3cad2b495cd8ae275a Mon Sep 17 00:00:00 2001 From: Hunter Nickel Date: Tue, 18 May 2021 06:08:23 -0600 Subject: [PATCH] Change ordering of labels in "when" clause (#5103) --- .../eu/kanade/tachiyomi/ui/browse/extension/ExtensionHolder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionHolder.kt index 7f5a7158a3..708a58591b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionHolder.kt @@ -36,8 +36,8 @@ class ExtensionHolder(view: View, val adapter: ExtensionAdapter) : binding.lang.text = LocaleHelper.getSourceDisplayName(extension.lang, itemView.context) binding.warning.text = when { extension is Extension.Untrusted -> itemView.context.getString(R.string.ext_untrusted) - extension is Extension.Installed && extension.isObsolete -> itemView.context.getString(R.string.ext_obsolete) extension is Extension.Installed && extension.isUnofficial -> itemView.context.getString(R.string.ext_unofficial) + extension is Extension.Installed && extension.isObsolete -> itemView.context.getString(R.string.ext_obsolete) extension.isNsfw && shouldLabelNsfw -> itemView.context.getString(R.string.ext_nsfw_short) else -> "" }.toUpperCase()