From 0fee4bd8c4ea6b278edbe23b291d1bbea5419bb6 Mon Sep 17 00:00:00 2001 From: Stiralbios Date: Thu, 7 Apr 2022 17:30:55 +0200 Subject: [PATCH] try to fix the issue with the watchface drawing over the Activity Reminder --- apps/activityreminder/boot.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/activityreminder/boot.js b/apps/activityreminder/boot.js index 170ece135..97d0d1d52 100644 --- a/apps/activityreminder/boot.js +++ b/apps/activityreminder/boot.js @@ -39,6 +39,9 @@ if (global.activityreminder) { }, showAlert: function(){ + g.clear(); + Bangle.loadWidgets(); + Bangle.drawWidgets(); E.showPrompt("Innactivity detected",{ title:"Activity reminder", buttons : {"Ok": true,"Dismiss": false} @@ -52,11 +55,11 @@ if (global.activityreminder) { load(); }); Bangle.buzz(); - + setTimeout(load, 10000); }, } ); - setInterval(global.activityreminder.run, 60000); + setInterval(global.activityreminder.run, 2000); }