Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarino Faggiana <marino@marinofaggiana.com>2022-10-01 19:59:51 +0300
committerMarino Faggiana <marino@marinofaggiana.com>2022-10-01 19:59:51 +0300
commit1e6421ebef389c8fa28211b5f16f481c11b9f34c (patch)
tree2997fe6e6b5b08af72cfcd98783104836b867b1d
parent27be912a492f702a72f87733d72ddf2b94bb75d4 (diff)
coding
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
-rw-r--r--iOSClient/AppDelegate.swift8
1 files changed, 2 insertions, 6 deletions
diff --git a/iOSClient/AppDelegate.swift b/iOSClient/AppDelegate.swift
index a24863ce6..a13db1070 100644
--- a/iOSClient/AppDelegate.swift
+++ b/iOSClient/AppDelegate.swift
@@ -211,7 +211,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
self.deletePasswordSession = false
if !NCAskAuthorization.shared.isRequesting {
- // Privacy
hidePrivacyProtectionWindow()
}
@@ -226,9 +225,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
// L' applicazione entrerĂ  in primo piano (attivo solo dopo il background)
func applicationWillEnterForeground(_ application: UIApplication) {
-
- if account == "" { return }
- guard let activeAccount = NCManageDatabase.shared.getActiveAccount() else { return }
+ guard !account.isEmpty, let activeAccount = NCManageDatabase.shared.getActiveAccount() else { return }
// Account changed ??
if activeAccount.account != account {
@@ -788,8 +785,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
// MARK: - Open URL
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
-
- if account == "" { return false }
+ guard !account.isEmpty else { return false }
let scheme = url.scheme
let action = url.host