Commit b353b297 authored by Mike JS. Choi's avatar Mike JS. Choi

[UI] Fix empty view behavior

Empty view now only appears when the library is empty, as one would
expect it to
parent f2b1fe4f
......@@ -85,11 +85,11 @@ public class VLCMediaViewController: UICollectionViewController, UISearchResults
override public func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
displayEmptyViewIfNeeded()
services.mediaDataSource.updateContents(forSelection: nil)
services.mediaDataSource.addAllFolders()
services.mediaDataSource.addRemainingFiles()
collectionView?.reloadData()
displayEmptyViewIfNeeded()
}
func setupSearchController() {
......
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