Commit a79ccf168daf120d0667fd8f6d5b95e575763ae7

Authored by wdn127929
1 parent e9897648

自动更新bug

Showing 1 changed file with 1 additions and 1 deletions
@@ -88,7 +88,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { @@ -88,7 +88,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver {
88 _getIntent(); 88 _getIntent();
89 Future.delayed(Duration(milliseconds: 30000), () { 89 Future.delayed(Duration(milliseconds: 30000), () {
90 ContactModel.getInstance().uploadLocalContact(context); 90 ContactModel.getInstance().uploadLocalContact(context);
91 - UpdateModel updateModel = Provider.of<UpdateModel>(context); 91 + UpdateModel updateModel = new UpdateModel();
92 updateModel.checkUpdate(context, showToast: false); 92 updateModel.checkUpdate(context, showToast: false);
93 }); 93 });
94 timer = Timer.periodic(Duration(minutes: 3), (_) { 94 timer = Timer.periodic(Duration(minutes: 3), (_) {