Show message in migrate screen if library is empty
(cherry picked from commit 690d8e43ae)
This commit is contained in:
+7
@@ -75,6 +75,13 @@ class MigrationSourcesController :
|
||||
}
|
||||
|
||||
fun setSources(sourcesWithManga: List<SourceItem>) {
|
||||
// Show empty view if needed
|
||||
if (sourcesWithManga.isNotEmpty()) {
|
||||
binding.emptyView.hide()
|
||||
} else {
|
||||
binding.emptyView.show(R.string.information_empty_library)
|
||||
}
|
||||
|
||||
adapter?.updateDataSet(sourcesWithManga)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user