marinofaggiana 4 년 전
부모
커밋
d2d3b58489
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      iOSClient/Main/Colleaction Common/NCCollectionViewCommon.swift
  2. 3 0
      iOSClient/Media/NCMedia.swift

+ 3 - 1
iOSClient/Main/Colleaction Common/NCCollectionViewCommon.swift

@@ -246,7 +246,9 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
             }
         }
         
-        self.navigationController?.popToRootViewController(animated: false)
+        if self is NCFiles || self is NCFavorite || self is NCOffline {
+            self.navigationController?.popToRootViewController(animated: false)
+        }
         
         appDelegate.listFilesVC.removeAll()
         appDelegate.listFavoriteVC.removeAll()

+ 3 - 0
iOSClient/Media/NCMedia.swift

@@ -154,6 +154,9 @@ class NCMedia: UIViewController, NCEmptyDataSetDelegate, NCSelectDelegate {
         self.reloadDataSourceWithCompletion { (_) in
             self.timerSearchNewMedia?.invalidate()
             self.timerSearchNewMedia = Timer.scheduledTimer(timeInterval: self.timeIntervalSearchNewMedia, target: self, selector: #selector(self.searchNewMediaTimer), userInfo: nil, repeats: false)
+            DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
+                self.mediaCommandTitle()
+            }
         }
     }