Loading app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt +9 −6 Original line number Diff line number Diff line Loading @@ -189,6 +189,7 @@ class SearchFragment : } updateSearchResult(listAdapter, apps ?: emptyList()) observeScrollOfSearchResult(listAdapter) scrollToTop() } } Loading Loading @@ -231,7 +232,15 @@ class SearchFragment : showData() listAdapter?.submitList(filteredApps) } private fun showData() { stopLoadingUI() noAppsFoundLayout?.visibility = View.GONE searchHintLayout?.visibility = View.GONE } private fun scrollToTop() { // Scroll to the top with some delays so that the recycler view has the time // to process the new results recyclerView?.postDelayed( Loading @@ -240,12 +249,6 @@ class SearchFragment : ) } private fun showData() { stopLoadingUI() noAppsFoundLayout?.visibility = View.GONE searchHintLayout?.visibility = View.GONE } private fun setupSearchResult(view: View): ApplicationListRVAdapter? { val listAdapter = findNavController().currentDestination?.id?.let { ApplicationListRVAdapter( Loading Loading
app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt +9 −6 Original line number Diff line number Diff line Loading @@ -189,6 +189,7 @@ class SearchFragment : } updateSearchResult(listAdapter, apps ?: emptyList()) observeScrollOfSearchResult(listAdapter) scrollToTop() } } Loading Loading @@ -231,7 +232,15 @@ class SearchFragment : showData() listAdapter?.submitList(filteredApps) } private fun showData() { stopLoadingUI() noAppsFoundLayout?.visibility = View.GONE searchHintLayout?.visibility = View.GONE } private fun scrollToTop() { // Scroll to the top with some delays so that the recycler view has the time // to process the new results recyclerView?.postDelayed( Loading @@ -240,12 +249,6 @@ class SearchFragment : ) } private fun showData() { stopLoadingUI() noAppsFoundLayout?.visibility = View.GONE searchHintLayout?.visibility = View.GONE } private fun setupSearchResult(view: View): ApplicationListRVAdapter? { val listAdapter = findNavController().currentDestination?.id?.let { ApplicationListRVAdapter( Loading