diff --git a/lib/providers/apps_provider.dart b/lib/providers/apps_provider.dart index 30f75bd..00a6bd0 100644 --- a/lib/providers/apps_provider.dart +++ b/lib/providers/apps_provider.dart @@ -594,21 +594,21 @@ class AppsProvider with ChangeNotifier { notifyListeners(); try { if (downloadedFile != null) { - if (willBeSilent) { + if (willBeSilent && context == null) { // Would await forever - workaround - TODO installApk(downloadedFile); } else { await installApk(downloadedFile); } } else { - if (willBeSilent) { + if (willBeSilent && context == null) { // Would await forever - workaround - TODO installXApkDir(downloadedDir!); } else { await installXApkDir(downloadedDir!); } } - if (willBeSilent) { + if (willBeSilent && context == null) { notificationsProvider?.notify(SilentUpdateAttemptNotification( [apps[appId]!.app], id: appId.hashCode));