Fixed breaking bug from previous commit

This commit is contained in:
Imran Remtulla
2022-11-06 14:21:00 -05:00
parent 97ab723d04
commit f3ead6caf1

View File

@@ -111,7 +111,7 @@ class AppsProvider with ChangeNotifier {
'${app.id}-${app.latestVersion}-${app.preferredApkIndex}.apk';
String downloadUrl = await SourceProvider()
.getSource(app.url)
.apkUrlPrefetchModifier(app.url);
.apkUrlPrefetchModifier(app.apkUrls[app.preferredApkIndex]);
int? prevProg;
File downloadedFile =
await downloadFile(downloadUrl, fileName, (double? progress) {