From e3460322b18f240615edcc1121c4e38f6d22d169 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Sun, 27 Jan 2019 13:59:28 +0100 Subject: [PATCH] Closes #279. --- .../main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt b/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt index d2e267b..e29e163 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt @@ -519,7 +519,9 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener { ) } } else { - val filteredTags = maybeTags.filterNot { hiddenTags.contains(it.tag) } + val filteredTags = maybeTags + .filterNot { hiddenTags.contains(it.tag) } + .sortedBy { it.unread == 0 } tagsBadge = filteredTags.map { val gd = GradientDrawable() val color = try {