Commit c460686d authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Fix for java.lang.IllegalStateException: group_no_file must not be null

parent 318eff21
......@@ -78,6 +78,7 @@ class FilesFragment : Fragment(), FilesView {
}
override fun showFiles(dataSet: List<FileUiModel>, total: Long) {
ui {
setupToolbar(total)
if (adapter.itemCount == 0) {
adapter.prependData(dataSet)
......@@ -96,7 +97,7 @@ class FilesFragment : Fragment(), FilesView {
group_no_file.isVisible = dataSet.isEmpty()
} else {
adapter.appendData(dataSet)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment