This commit is contained in:
Amine Bou 2018-04-02 09:08:58 +02:00
parent 4f8556fca8
commit ebecc9c80a

View File

@ -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()