From 8ad8b55424003a6b48b3c80de7908bdd68734588 Mon Sep 17 00:00:00 2001 From: Amine Date: Thu, 8 Jun 2017 20:43:22 +0200 Subject: [PATCH] Drawer reloading on slide to refresh. --- .../java/apps/amine/bou/readerforselfoss/HomeActivity.kt | 5 ++++- 1 file changed, 4 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 dc652d1..6fa78db 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt @@ -387,7 +387,10 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener { R.color.refresh_progress_1, R.color.refresh_progress_2, R.color.refresh_progress_3) - mSwipeRefreshLayout!!.setOnRefreshListener { getElementsAccordingToTab() } + mSwipeRefreshLayout!!.setOnRefreshListener { + handleDrawerItems() + getElementsAccordingToTab() + } val simpleItemTouchCallback = object : ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.LEFT or ItemTouchHelper.RIGHT) {