mirror of
https://github.com/ente-io/ente.git
synced 2025-08-13 09:47:17 +00:00
Merge remote-tracking branch 'origin/main' into mobile-resumable
This commit is contained in:
@@ -363,9 +363,10 @@ class FileUploader {
|
||||
if (isForceUpload) {
|
||||
return;
|
||||
}
|
||||
final connectivityResult = await (Connectivity().checkConnectivity());
|
||||
final List<ConnectivityResult> connections =
|
||||
await (Connectivity().checkConnectivity());
|
||||
bool canUploadUnderCurrentNetworkConditions = true;
|
||||
if (connectivityResult == ConnectivityResult.mobile) {
|
||||
if (connections.any((element) => element == ConnectivityResult.mobile)) {
|
||||
canUploadUnderCurrentNetworkConditions =
|
||||
Configuration.instance.shouldBackupOverMobileData();
|
||||
}
|
||||
|
Reference in New Issue
Block a user