浏览代码

Build 00007 - Fix

Marino Faggiana 7 年之前
父节点
当前提交
de94830e2e

+ 1 - 1
iOSClient/Brand/Picker.plist

@@ -19,7 +19,7 @@
 	<key>CFBundleShortVersionString</key>
 	<string>2.20.6</string>
 	<key>CFBundleVersion</key>
-	<string>00006</string>
+	<string>00007</string>
 	<key>NSAppTransportSecurity</key>
 	<dict>
 		<key>NSAllowsArbitraryLoads</key>

+ 1 - 1
iOSClient/Brand/PickerFileProvider.plist

@@ -19,7 +19,7 @@
 	<key>CFBundleShortVersionString</key>
 	<string>2.20.6</string>
 	<key>CFBundleVersion</key>
-	<string>00006</string>
+	<string>00007</string>
 	<key>NSExtension</key>
 	<dict>
 		<key>NSExtensionFileProviderDocumentGroup</key>

+ 1 - 1
iOSClient/Brand/Share.plist

@@ -19,7 +19,7 @@
 	<key>CFBundleShortVersionString</key>
 	<string>2.20.6</string>
 	<key>CFBundleVersion</key>
-	<string>00006</string>
+	<string>00007</string>
 	<key>NSAppTransportSecurity</key>
 	<dict>
 		<key>NSAllowsArbitraryLoads</key>

+ 1 - 1
iOSClient/Brand/iOSClient.plist

@@ -69,7 +69,7 @@
 		</dict>
 	</array>
 	<key>CFBundleVersion</key>
-	<string>00006</string>
+	<string>00007</string>
 	<key>Fabric</key>
 	<dict>
 		<key>APIKey</key>

+ 18 - 20
iOSClient/Networking/NCService.swift

@@ -134,24 +134,23 @@ class NCService: NSObject, OCNetworkingDelegate {
 
                     guard let imageData = try? Data(contentsOf: URL(string: address)!) else {
                         DispatchQueue.main.async {
-                            NotificationCenter.default.post(name: NSNotification.Name(rawValue: "changeTheming"), object: nil)
+                            self.appDelegate.settingThemingColorBrand()
                         }
                         return
                     }
                     
-                    guard let image = UIImage(data: imageData) else {
-                        try? FileManager.default.removeItem(atPath: fileName)
-                        DispatchQueue.main.async {
-                            NotificationCenter.default.post(name: NSNotification.Name(rawValue: "changeTheming"), object: nil)
+                    DispatchQueue.main.async {
+                        
+                        guard let image = UIImage(data: imageData) else {
+                            try? FileManager.default.removeItem(atPath: fileName)
+                            self.appDelegate.settingThemingColorBrand()
+                            return
                         }
-                        return
-                    }
                     
-                    if let data = UIImagePNGRepresentation(image) {
-                        try? data.write(to: URL(fileURLWithPath: fileName))
-                    }
+                        if let data = UIImagePNGRepresentation(image) {
+                            try? data.write(to: URL(fileURLWithPath: fileName))
+                        }
                     
-                    DispatchQueue.main.async {
                         self.appDelegate.settingThemingColorBrand()
                     }
                 }
@@ -251,19 +250,18 @@ class NCService: NSObject, OCNetworkingDelegate {
                     return
                 }
                 
-                guard let image = UIImage(data: imageData) else {
-                    try? FileManager.default.removeItem(atPath: fileName)
-                    DispatchQueue.main.async {
+                DispatchQueue.main.async {
+                    
+                    guard let image = UIImage(data: imageData) else {
+                        try? FileManager.default.removeItem(atPath: fileName)
                         NotificationCenter.default.post(name: NSNotification.Name(rawValue: "changeUserProfile"), object: nil)
+                        return
                     }
-                    return
-                }
                 
-                if let data = UIImagePNGRepresentation(image) {
-                    try? data.write(to: URL(fileURLWithPath: fileName))
-                }
+                    if let data = UIImagePNGRepresentation(image) {
+                        try? data.write(to: URL(fileURLWithPath: fileName))
+                    }
                 
-                DispatchQueue.main.async {
                     NotificationCenter.default.post(name: NSNotification.Name(rawValue: "changeUserProfile"), object: nil)
                 }
             }