mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-27 16:39:30 +02:00
bugfix
This commit is contained in:
@@ -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));
|
||||||
|
Reference in New Issue
Block a user