mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-19 13:09:30 +02:00
Fix error after fgbg package update in previous commit
This commit is contained in:
@@ -367,7 +367,7 @@ class AppsProvider with ChangeNotifier {
|
||||
|
||||
AppsProvider({isBg = false}) {
|
||||
// Subscribe to changes in the app foreground status
|
||||
foregroundStream = FGBGEvents.stream.asBroadcastStream();
|
||||
foregroundStream = FGBGEvents.instance.stream.asBroadcastStream();
|
||||
foregroundSubscription = foregroundStream?.listen((event) async {
|
||||
isForeground = event == FGBGType.foreground;
|
||||
if (isForeground) {
|
||||
@@ -572,7 +572,7 @@ class AppsProvider with ChangeNotifier {
|
||||
if (!isForeground) {
|
||||
await notificationsProvider.notify(completeInstallationNotification,
|
||||
cancelExisting: true);
|
||||
while (await FGBGEvents.stream.first != FGBGType.foreground) {}
|
||||
while (await FGBGEvents.instance.stream.first != FGBGType.foreground) {}
|
||||
await notificationsProvider.cancel(completeInstallationNotification.id);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user