fix #370
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run

This commit is contained in:
otsmr 2026-01-14 22:37:49 +01:00
parent 13f62934b7
commit e9c5d49938

View file

@ -57,15 +57,10 @@ Future<bool> isAllowedToDownload(MediaType type) async {
if (options[ConnectivityResult.mobile.name]!
.contains(DownloadMediaTypes.video.name)) {
return true;
} else if (type == MediaType.audio) {
if (options[ConnectivityResult.mobile.name]!
.contains(DownloadMediaTypes.audio.name)) {
return true;
}
} else if (options[ConnectivityResult.mobile.name]!
.contains(DownloadMediaTypes.image.name)) {
return true;
}
} else if (options[ConnectivityResult.mobile.name]!
.contains(DownloadMediaTypes.image.name)) {
return true;
}
}
if (connectivityResult.contains(ConnectivityResult.wifi)) {
@ -74,11 +69,6 @@ Future<bool> isAllowedToDownload(MediaType type) async {
.contains(DownloadMediaTypes.video.name)) {
return true;
}
} else if (type == MediaType.audio) {
if (options[ConnectivityResult.wifi.name]!
.contains(DownloadMediaTypes.audio.name)) {
return true;
}
} else if (options[ConnectivityResult.wifi.name]!
.contains(DownloadMediaTypes.image.name)) {
return true;