mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-20 05:19:28 +02:00
Bugfix for previous commit
This commit is contained in:
@@ -149,6 +149,7 @@ class AppsProvider with ChangeNotifier {
|
||||
apps[app.id]!.downloadProgress = 0;
|
||||
notifyListeners();
|
||||
}
|
||||
try {
|
||||
var fileName =
|
||||
'${app.id}-${app.latestVersion}-${app.preferredApkIndex}.apk';
|
||||
String downloadUrl = await SourceProvider()
|
||||
@@ -199,6 +200,12 @@ class AppsProvider with ChangeNotifier {
|
||||
}
|
||||
}
|
||||
return DownloadedApk(app.id, downloadedFile);
|
||||
} finally {
|
||||
if (apps[app.id] != null) {
|
||||
apps[app.id]!.downloadProgress = null;
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool areDownloadsRunning() => apps.values
|
||||
|
Reference in New Issue
Block a user