Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Initialize SSS only when app is in foreground
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnukvmd committed Dec 18, 2023
1 parent 6c242aa commit 94a5128
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ Future<void> _init(bool isBackground, {String via = ''}) async {
});
}
unawaited(FeatureFlagService.instance.init());
unawaited(SemanticSearchService.instance.init());
if (!isBackground) {
unawaited(SemanticSearchService.instance.init());
}
// Can not including existing tf/ml binaries as they are not being built
// from source.
// See https://gitlab.com/fdroid/fdroiddata/-/merge_requests/12671#note_1294346819
Expand Down

0 comments on commit 94a5128

Please sign in to comment.