Commit cf9217e162c2285b32eb4a8561f918fd09d41f61
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 { | @@ -268,7 +268,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { | ||
| 268 | if (widget.initialIndex == 0 || | 268 | if (widget.initialIndex == 0 || |
| 269 | widget.initialIndex == 1 && needRefreshTemp == false) return; | 269 | widget.initialIndex == 1 && needRefreshTemp == false) return; |
| 270 | _initNotification(); | 270 | _initNotification(); |
| 271 | - Future.delayed(Duration(seconds: 5), () { | 271 | + Future.delayed(Duration(minutes: 5), () { |
| 272 | //30000 | 272 | //30000 |
| 273 | ContactModel.getInstance().uploadLocalContact(context); | 273 | ContactModel.getInstance().uploadLocalContact(context); |
| 274 | UserModel usermodel = Provider.of<UserModel>(context, listen: false); | 274 | UserModel usermodel = Provider.of<UserModel>(context, listen: false); |
-
Please register or login to post a comment