Commit 1a2af130 authored by Nihar Thakkar's avatar Nihar Thakkar
Browse files

Automatically scroll to top of search results if not loading more apps

parent 3bc0432e
......@@ -118,6 +118,9 @@ class SearchFragment : Fragment(), SearchView.OnQueryTextListener, SearchView.On
applicationList.addAll(it)
progressBar.visibility = View.GONE
recyclerView.adapter.notifyDataSetChanged()
if (!isLoadingMoreApplications) {
recyclerView.scrollToPosition(0)
}
loadMoreContainer.visibility = View.GONE
isLoadingMoreApplications = false
if (applicationList.isEmpty()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment