This commit is contained in:
Imran Remtulla
2023-08-21 09:48:35 -04:00
parent b59d3e77f9
commit 03bb1ad9a6

View File

@@ -594,21 +594,21 @@ class AppsProvider with ChangeNotifier {
notifyListeners(); notifyListeners();
try { try {
if (downloadedFile != null) { if (downloadedFile != null) {
if (willBeSilent) { if (willBeSilent && context == null) {
// Would await forever - workaround - TODO // Would await forever - workaround - TODO
installApk(downloadedFile); installApk(downloadedFile);
} else { } else {
await installApk(downloadedFile); await installApk(downloadedFile);
} }
} else { } else {
if (willBeSilent) { if (willBeSilent && context == null) {
// Would await forever - workaround - TODO // Would await forever - workaround - TODO
installXApkDir(downloadedDir!); installXApkDir(downloadedDir!);
} else { } else {
await installXApkDir(downloadedDir!); await installXApkDir(downloadedDir!);
} }
} }
if (willBeSilent) { if (willBeSilent && context == null) {
notificationsProvider?.notify(SilentUpdateAttemptNotification( notificationsProvider?.notify(SilentUpdateAttemptNotification(
[apps[appId]!.app], [apps[appId]!.app],
id: appId.hashCode)); id: appId.hashCode));