Marino Faggiana 2 年之前
父節點
當前提交
e5222f2277

+ 0 - 3
iOSClient/Viewer/NCViewerMedia/NCPlayer/NCPlayerToolBar.swift

@@ -163,9 +163,6 @@ class NCPlayerToolBar: UIView {
 
     public func show(enableTimerAutoHide: Bool = false) {
 
-        guard let metadata = self.metadata, ncplayer != nil, !metadata.livePhoto else { return }
-        if metadata.classFile != NKCommon.TypeClassFile.video.rawValue && metadata.classFile != NKCommon.TypeClassFile.audio.rawValue { return }
-
         timerAutoHide?.invalidate()
         if enableTimerAutoHide {
             startTimerAutoHide()

+ 2 - 1
iOSClient/Viewer/NCViewerMedia/NCViewerMediaPage.swift

@@ -194,8 +194,9 @@ class NCViewerMediaPage: UIViewController {
             hideStatusBar = false
             progressView.isHidden = false
 
-            if !currentViewController.detailView.isShow() {
+            if metadatas[currentIndex].classFile == NKCommon.TypeClassFile.video.rawValue || metadatas[currentIndex].classFile == NKCommon.TypeClassFile.audio.rawValue {
                 currentViewController.playerToolBar?.show(enableTimerAutoHide: enableTimerAutoHide)
+
             }
 
             NCUtility.shared.colorNavigationController(navigationController, backgroundColor: .systemBackground, titleColor: .label, tintColor: nil, withoutShadow: false)