소스 검색

[UI] Fix empty view behavior

Empty view now only appears when the library is empty, as one would
expect it to
Mike JS. Choi 7 년 전
부모
커밋
b353b297df
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Sources/MediaViewController.swift

+ 1 - 1
Sources/MediaViewController.swift

@@ -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() {