From c9b1d329e6532f4e95def55bae6c363f8d0b8b5e Mon Sep 17 00:00:00 2001 From: Amine Date: Sun, 2 Jul 2017 19:36:37 +0200 Subject: [PATCH] Fixes #30 --- .../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 8af67e3..80d502f 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/HomeActivity.kt @@ -532,6 +532,9 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener { mSwipeRefreshLayout.isRefreshing = false } + if (!mSwipeRefreshLayout.isRefreshing) + mSwipeRefreshLayout.post { mSwipeRefreshLayout.isRefreshing = true } + call(maybeTagFilter?.tag, maybeSourceFilter?.id?.toLong(), maybeSearchFilter) .enqueue(object : Callback> { override fun onResponse(call: Call>, response: Response>) {