This commit is contained in:
Amine 2017-07-02 19:36:37 +02:00
parent e68c16c7a4
commit c9b1d329e6

View File

@ -532,6 +532,9 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener {
mSwipeRefreshLayout.isRefreshing = false mSwipeRefreshLayout.isRefreshing = false
} }
if (!mSwipeRefreshLayout.isRefreshing)
mSwipeRefreshLayout.post { mSwipeRefreshLayout.isRefreshing = true }
call(maybeTagFilter?.tag, maybeSourceFilter?.id?.toLong(), maybeSearchFilter) call(maybeTagFilter?.tag, maybeSourceFilter?.id?.toLong(), maybeSearchFilter)
.enqueue(object : Callback<List<Item>> { .enqueue(object : Callback<List<Item>> {
override fun onResponse(call: Call<List<Item>>, response: Response<List<Item>>) { override fun onResponse(call: Call<List<Item>>, response: Response<List<Item>>) {