diff --git a/app/src/main/java/foundation/e/apps/updates/UpdatesFragment.kt b/app/src/main/java/foundation/e/apps/updates/UpdatesFragment.kt index b40ecd8a7b683538084e21225805cc37e1451cc4..60bb51b2635826327bbcdec07e5f950733f1a475 100644 --- a/app/src/main/java/foundation/e/apps/updates/UpdatesFragment.kt +++ b/app/src/main/java/foundation/e/apps/updates/UpdatesFragment.kt @@ -315,7 +315,15 @@ class UpdatesFragment : TimeoutFragment(R.layout.fragment_updates), FusedAPIInte override fun stopLoadingUI() { binding.progressBar.visibility = View.GONE - binding.recyclerView.visibility = View.VISIBLE + + if ((binding.recyclerView.adapter?.itemCount ?: 0) > 0) { + binding.noUpdates.visibility = View.GONE + binding.recyclerView.visibility = View.VISIBLE + return + } + + binding.noUpdates.visibility = View.VISIBLE + binding.recyclerView.visibility = View.INVISIBLE } override fun onResume() {