File tree Expand file tree Collapse file tree
app/src/main/java/com/nextcloud/client/network Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ class ConnectivityServiceImpl(
9797
9898 val baseServerAddress = accountManager.user.server.uri.toString()
9999 if (baseServerAddress.isEmpty()) {
100- Log_OC .e(TAG , " no base server address, internet is walled " )
100+ Log_OC .e(TAG , " no base server address, relying on current connectivity " )
101101 return ! currentConnectivity.isConnected
102102 }
103103
@@ -107,6 +107,11 @@ class ConnectivityServiceImpl(
107107 return true
108108 }
109109
110+ if (currentConnectivity.isMetered) {
111+ Log_OC .e(TAG , " metered connection, relying on current connectivity" )
112+ return ! currentConnectivity.isConnected
113+ }
114+
110115 val get = requestBuilder.invoke(baseServerAddress + CONNECTIVITY_CHECK_ROUTE )
111116 val client = clientFactory.createPlainClient()
112117
You can’t perform that action at this time.
0 commit comments