Loading app/src/main/java/foundation/e/apps/search/SearchFragment.kt +5 −1 Original line number Diff line number Diff line Loading @@ -193,7 +193,11 @@ class SearchFragment : recyclerView?.visibility = View.VISIBLE noAppsFoundLayout?.visibility = View.GONE } recyclerView!!.postDelayed(Runnable { kotlin.run { recyclerView!!.scrollToPosition(0) } }, 1000) listAdapter?.registerAdapterDataObserver(object: RecyclerView.AdapterDataObserver() { override fun onItemRangeInserted(positionStart: Int, itemCount: Int) { recyclerView!!.scrollToPosition(0) } }) } } Loading Loading
app/src/main/java/foundation/e/apps/search/SearchFragment.kt +5 −1 Original line number Diff line number Diff line Loading @@ -193,7 +193,11 @@ class SearchFragment : recyclerView?.visibility = View.VISIBLE noAppsFoundLayout?.visibility = View.GONE } recyclerView!!.postDelayed(Runnable { kotlin.run { recyclerView!!.scrollToPosition(0) } }, 1000) listAdapter?.registerAdapterDataObserver(object: RecyclerView.AdapterDataObserver() { override fun onItemRangeInserted(positionStart: Int, itemCount: Int) { recyclerView!!.scrollToPosition(0) } }) } } Loading