fix: countly double init due to rebuild app

This commit is contained in:
lollipopkit
2023-03-21 15:02:43 +08:00
parent 4cc72328a7
commit f1ae924724
5 changed files with 31 additions and 29 deletions

View File

@@ -308,6 +308,8 @@ class _MyHomePageState extends State<MyHomePage>
await GetIt.I.allReady();
await locator<ServerProvider>().loadLocalData();
await doUpdate(context);
await Analysis.init();
if (!Analysis.enabled) {
await Analysis.init();
}
}
}