Initialize SSS only when app is in foreground

This commit is contained in:
vishnukvmd 2023-12-19 00:36:49 +05:30
parent 6c242aa1d2
commit 94a5128660

View file

@ -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