Ver Fonte

added setNeedsUpdateOfHomeIndicatorAutoHidden

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana há 3 anos atrás
pai
commit
e960f7d875

+ 1 - 1
iOSClient/AppDelegate.swift

@@ -362,7 +362,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         NCAutoUpload.shared.initAutoUpload(viewController: nil) { _ in
             DispatchQueue.main.asyncAfter(deadline: .now() + 5) {
                 NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterUpdateBadgeNumber)
-                NCCommunicationCommon.shared.writeLog("Completition handler refresh task with %lu uploads [Auto upload]")
+                NCCommunicationCommon.shared.writeLog("Completition handler refresh task with [Auto upload]")
                 task.setTaskCompleted(success: true)
             }
         }

+ 5 - 0
iOSClient/Viewer/NCViewerMedia/NCViewerMediaPage.swift

@@ -147,6 +147,10 @@ class NCViewerMediaPage: UIViewController {
         }
     }
 
+    override var prefersHomeIndicatorAutoHidden: Bool {
+        return currentScreenMode == .full
+    }
+
     // MARK: -
     
     func getViewerMedia(index: Int, metadata: tableMetadata) -> NCViewerMedia {
@@ -205,6 +209,7 @@ class NCViewerMediaPage: UIViewController {
         }
 
         setNeedsStatusBarAppearanceUpdate()
+        setNeedsUpdateOfHomeIndicatorAutoHidden()
         currentViewController.reloadDetail()
     }