Commit cf9217e162c2285b32eb4a8561f918fd09d41f61

Authored by wdn127929
1 parent a7b16fa1

修复权限使用目的提醒bug:用户自主按返回键遮罩层消失,定时器还会执行返回上一层页面,当用户在home页,即栈顶层,则会出现黑屏

Showing 1 changed file with 1 additions and 1 deletions
... ... @@ -268,7 +268,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver {
if (widget.initialIndex == 0 ||
widget.initialIndex == 1 && needRefreshTemp == false) return;
_initNotification();
Future.delayed(Duration(seconds: 5), () {
Future.delayed(Duration(minutes: 5), () {
//30000
ContactModel.getInstance().uploadLocalContact(context);
UserModel usermodel = Provider.of<UserModel>(context, listen: false);
... ...