From af937f2e31268a998a8336ae6c23996b57feb267 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 29 Mar 2020 16:20:48 -0400 Subject: [PATCH] Hide catalogue empty view properly (fixes #2783) --- .../ui/catalogue/browse/BrowseCatalogueController.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/browse/BrowseCatalogueController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/browse/BrowseCatalogueController.kt index 8b2db2a6b8..9b8c6ee041 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/browse/BrowseCatalogueController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/browse/BrowseCatalogueController.kt @@ -356,7 +356,6 @@ open class BrowseCatalogueController(bundle: Bundle) : if (catalogue_view != null) { val message = getErrorMessage(error) val retryAction = View.OnClickListener { - empty_view.hide() // If not the first page, show bottom progress bar. if (adapter.mainItemCount > 0 && progressItem != null) { @@ -378,8 +377,6 @@ open class BrowseCatalogueController(bundle: Bundle) : empty_view.show(message, actions) } else { - empty_view.hide() - snack = catalogue_view.snack(message, Snackbar.LENGTH_INDEFINITE) { setAction(R.string.action_retry, retryAction) } @@ -496,6 +493,7 @@ open class BrowseCatalogueController(bundle: Bundle) : * Hides active progress bars. */ private fun hideProgressBar() { + empty_view.hide() progress?.gone() }