Random kaomoji for empty view

This commit is contained in:
arkon
2020-03-09 18:59:17 -04:00
parent d5ff5fd6f8
commit d7d3731567
14 changed files with 44 additions and 78 deletions

View File

@@ -120,7 +120,7 @@ class CategoryController : NucleusController<CategoryPresenter>(),
selected.forEach { onItemLongClick(categories.indexOf(it)) }
}
} else {
empty_view.show(R.drawable.ic_shape_black_128dp, R.string.information_empty_category)
empty_view.show(R.string.information_empty_category)
}
}

View File

@@ -242,8 +242,7 @@ class DownloadController : NucleusController<DownloadPresenter>() {
*/
private fun setInformationView() {
if (presenter.downloadQueue.isEmpty()) {
empty_view?.show(R.drawable.ic_file_download_black_128dp,
R.string.information_no_downloads)
empty_view?.show(R.string.information_no_downloads)
} else {
empty_view?.hide()
}

View File

@@ -112,8 +112,7 @@ class ExtensionDetailsController(bundle: Bundle? = null) :
extension_prefs_recycler.addItemDecoration(DividerItemDecoration(context, VERTICAL))
if (screen.preferenceCount == 0) {
extension_prefs_empty_view.show(R.drawable.ic_no_settings,
R.string.ext_empty_preferences)
extension_prefs_empty_view.show(R.string.ext_empty_preferences)
}
}

View File

@@ -237,7 +237,7 @@ class LibraryController(
if (mangaMap.isNotEmpty()) {
empty_view.hide()
} else {
empty_view.show(R.drawable.ic_book_black_128dp, R.string.information_empty_library)
empty_view.show(R.string.information_empty_library)
}
// Get the current active category.

View File

@@ -81,7 +81,7 @@ class HistoryController : NucleusController<HistoryPresenter>(),
if (size > 0) {
empty_view.hide()
} else {
empty_view.show(R.drawable.ic_history_black_128dp, R.string.information_no_recent_manga)
empty_view.show(R.string.information_no_recent_manga)
}
}

View File

@@ -194,7 +194,7 @@ class UpdatesController : NucleusController<UpdatesPresenter>(),
if (size > 0) {
empty_view?.hide()
} else {
empty_view?.show(R.drawable.ic_new_releases_black_128dp, R.string.information_no_recent)
empty_view?.show(R.string.information_no_recent)
}
}