Fix bug: init sharedPref and call sync during init
This commit is contained in:
parent
0324f416ab
commit
a62eeb1dae
2 changed files with 2 additions and 1 deletions
|
@ -143,7 +143,7 @@ Future<void> _init(bool isBackground) async {
|
|||
await RemoteSyncService.instance.init();
|
||||
await SyncService.instance.init();
|
||||
await MemoriesService.instance.init();
|
||||
FeatureFlagService.instance.sync();
|
||||
FeatureFlagService.instance.init();
|
||||
_logger.info("Initialization done");
|
||||
_initializationStatus.complete();
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ class FeatureFlagService {
|
|||
|
||||
Future<void> init() async {
|
||||
_prefs = await SharedPreferences.getInstance();
|
||||
await sync();
|
||||
}
|
||||
|
||||
bool disableCFWorker() {
|
||||
|
|
Loading…
Reference in a new issue