Explorar el Código

fix CCMore.swift line 208 Version 2.17.2 (00005)

Marino Faggiana hace 7 años
padre
commit
c006604f9c

BIN
Nextcloud.xcodeproj/project.xcworkspace/xcuserdata/marinofaggiana.xcuserdatad/UserInterfaceState.xcuserstate


+ 18 - 0
Nextcloud.xcodeproj/xcuserdata/marinofaggiana.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -2,4 +2,22 @@
 <Bucket
    type = "1"
    version = "2.0">
+   <Breakpoints>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "Yes"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "iOSClient/Main/CCMore.swift"
+            timestampString = "515585297.452078"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "194"
+            endingLineNumber = "194"
+            landmarkName = "changeUserProfile()"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+   </Breakpoints>
 </Bucket>

+ 11 - 7
iOSClient/Main/CCMore.swift

@@ -205,13 +205,17 @@ class CCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
                 labelUsername.text = self.tableAccont!.user
             }
             
-            progressQuota.progress = Float((self.tableAccont?.quotaRelative)!) / 100
-            progressQuota.progressTintColor = NCBrandColor.sharedInstance.brand
-            
-            let quota : String = CCUtility.transformedSize(Double((self.tableAccont?.quotaTotal)!))
-            let quotaUsed : String = CCUtility.transformedSize(Double((self.tableAccont?.quotaUsed)!))
-            
-            labelQuota.text = String.localizedStringWithFormat(NSLocalizedString("_quota_using_", comment: ""), quotaUsed, quota)
+            // fix CCMore.swift line 208 Version 2.17.2 (00005)
+            if (self.tableAccont?.quotaRelative != nil && self.tableAccont?.quotaTotal != nil && self.tableAccont?.quotaUsed != nil) {
+                
+                progressQuota.progress = Float((self.tableAccont?.quotaRelative)!) / 100
+                progressQuota.progressTintColor = NCBrandColor.sharedInstance.brand
+                
+                let quota : String = CCUtility.transformedSize(Double((self.tableAccont?.quotaTotal)!))
+                let quotaUsed : String = CCUtility.transformedSize(Double((self.tableAccont?.quotaUsed)!))
+                
+                labelQuota.text = String.localizedStringWithFormat(NSLocalizedString("_quota_using_", comment: ""), quotaUsed, quota)
+            }
         }
     }