Initialize SSS only when app is in foreground
This commit is contained in:
parent
6c242aa1d2
commit
94a5128660
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue