marinofaggiana 4 vuotta sitten
vanhempi
commit
d2d3b58489

+ 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()
+            }
         }
     }