Fix bug: init sharedPref and call sync during init

This commit is contained in:
Neeraj Gupta 2021-08-24 12:33:27 +05:30
parent 0324f416ab
commit a62eeb1dae
2 changed files with 2 additions and 1 deletions

View file

@ -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();
}

View file

@ -17,6 +17,7 @@ class FeatureFlagService {
Future<void> init() async {
_prefs = await SharedPreferences.getInstance();
await sync();
}
bool disableCFWorker() {