Addresses #76 and #93

This commit is contained in:
Imran Remtulla
2022-11-04 18:53:25 -04:00
parent 76e98feeb7
commit c9711c7734
3 changed files with 6 additions and 6 deletions

View File

@@ -70,8 +70,9 @@ class AppsProvider with ChangeNotifier {
}
downloadApk(String apkUrl, String fileName, Function? onProgress,
Function? urlModifier,
{bool useExistingIfExists = true}) async {
Function? urlModifier) async {
bool useExistingIfExists =
false; // This should be an function argument, but isn't because of the partially downloaded APK issue
var destDir = (await getExternalStorageDirectory())!.path;
if (urlModifier != null) {
apkUrl = await urlModifier(apkUrl);