From ebecc9c80aecad6757c2661b8f9d333ef014fd45 Mon Sep 17 00:00:00 2001 From: Amine Bou Date: Mon, 2 Apr 2018 09:08:58 +0200 Subject: [PATCH] Fixes #188. --- .../main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt | 3 +++ 1 file changed, 3 insertions(+) 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 74c9d0b..d7166d6 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt @@ -451,6 +451,7 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener { .withColor(appColors.accent) ) .withOnDrawerItemClickListener { _, _, _ -> + allItems = ArrayList() maybeTagFilter = tag getElementsAccordingToTab() false @@ -477,6 +478,7 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener { .withIdentifier(tag.id.toLong()) .withIcon(tag.getIcon(this@HomeActivity)) .withOnDrawerItemClickListener { _, _, _ -> + allItems = ArrayList() maybeSourceFilter = tag getElementsAccordingToTab() false @@ -495,6 +497,7 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener { .withIdentifier(DRAWER_ID_FILTERS) .withBadge(getString(R.string.drawer_action_clear)) .withOnDrawerItemClickListener { _, _, _ -> + allItems = ArrayList() maybeSourceFilter = null maybeTagFilter = null getElementsAccordingToTab()