Drawer reloading on slide to refresh.

This commit is contained in:
Amine 2017-06-08 20:43:22 +02:00
parent 3da1d431db
commit 8ad8b55424

View File

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