diff options
author | marinofaggiana <ios@nextcloud.com> | 2022-04-07 18:22:22 +0300 |
---|---|---|
committer | marinofaggiana <ios@nextcloud.com> | 2022-04-08 11:05:18 +0300 |
commit | e960f7d875c652d3e117de93fecdd0a4ebbd2e40 (patch) | |
tree | f216e9c5307b628eb079678ffa568f871751c85a /iOSClient | |
parent | 24032c6c3eb981fa50781cc6e48cfb53eb91c9ba (diff) |
added setNeedsUpdateOfHomeIndicatorAutoHidden
Signed-off-by: marinofaggiana <ios@nextcloud.com>
Diffstat (limited to 'iOSClient')
-rw-r--r-- | iOSClient/AppDelegate.swift | 2 | ||||
-rw-r--r-- | iOSClient/Viewer/NCViewerMedia/NCViewerMediaPage.swift | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/iOSClient/AppDelegate.swift b/iOSClient/AppDelegate.swift index a1faab33a..1cc01c048 100644 --- a/iOSClient/AppDelegate.swift +++ b/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) } } diff --git a/iOSClient/Viewer/NCViewerMedia/NCViewerMediaPage.swift b/iOSClient/Viewer/NCViewerMedia/NCViewerMediaPage.swift index 19c92c8cb..1647e9d3c 100644 --- a/iOSClient/Viewer/NCViewerMedia/NCViewerMediaPage.swift +++ b/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() } |