Improve load speed on return to foreground

This commit is contained in:
Imran Remtulla
2024-04-02 13:45:32 -04:00
parent f3d2dfe386
commit 1fe4cdd648

View File

@@ -360,7 +360,7 @@ class AppsProvider with ChangeNotifier {
foregroundStream = FGBGEvents.stream.asBroadcastStream(); foregroundStream = FGBGEvents.stream.asBroadcastStream();
foregroundSubscription = foregroundStream?.listen((event) async { foregroundSubscription = foregroundStream?.listen((event) async {
isForeground = event == FGBGType.foreground; isForeground = event == FGBGType.foreground;
if (isForeground) await loadApps(); if (isForeground) loadApps();
}); });
() async { () async {
await settingsProvider.initializeSettings(); await settingsProvider.initializeSettings();