Address review comment
This commit is contained in:
parent
c6f6232807
commit
9d28270768
1 changed files with 2 additions and 5 deletions
|
@ -173,11 +173,8 @@ abstract class MLFramework {
|
|||
|
||||
Future<bool> _canDownload() async {
|
||||
final connectivityResult = await (Connectivity().checkConnectivity());
|
||||
bool canDownloadUnderCurrentNetworkConditions = true;
|
||||
if (connectivityResult == ConnectivityResult.mobile) {
|
||||
canDownloadUnderCurrentNetworkConditions = shouldDownloadOverMobileData;
|
||||
}
|
||||
return canDownloadUnderCurrentNetworkConditions;
|
||||
return connectivityResult != ConnectivityResult.mobile ||
|
||||
shouldDownloadOverMobileData;
|
||||
}
|
||||
|
||||
Future<String> getAccessiblePathForAsset(
|
||||
|
|
Loading…
Add table
Reference in a new issue