Browse Source

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
ddfde579be

+ 1 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -872,6 +872,7 @@
 "_in_"                      = "in";
 "_enter_passphrase_"        = "Enter passphrase (12 words)";
 "_show_more_results_"       = "Show more results";
+"_wait_wifi_"               = "Waiting for: network is reachable via WiFi or cable";
 
 // Video
 "_select_trace_"            = "Select the trace";

+ 4 - 0
iOSClient/Transfers/NCTransfers.swift

@@ -253,6 +253,10 @@ class NCTransfers: NCCollectionViewCommon, NCTransferCellDelegate {
         if self.appDelegate.account != metadata.account {
             cell.labelInfo.text = NSLocalizedString("_user_", comment: "") + ": \(metadata.userId) " + NSLocalizedString("_in_", comment: "") + " \(metadata.urlBase)"
         }
+        if metadata.session == NCNetworking.shared.sessionIdentifierBackgroundWWan && NCNetworking.shared.networkReachability != NCCommunicationCommon.typeReachability.reachableEthernetOrWiFi {
+            cell.labelInfo.text = NSLocalizedString("_wait_wifi_", comment: "")
+        }
+        
         cell.accessibilityLabel = metadata.fileNameView + ", " + (cell.labelInfo.text ?? "")
 
         // Remove last separator