try to fix the issue with the watchface drawing over the Activity Reminder

pull/1714/head
Stiralbios 2022-04-07 17:30:55 +02:00
parent efe25635dc
commit 0fee4bd8c4
1 changed files with 5 additions and 2 deletions

View File

@ -39,6 +39,9 @@ if (global.activityreminder) {
}, },
showAlert: function(){ showAlert: function(){
g.clear();
Bangle.loadWidgets();
Bangle.drawWidgets();
E.showPrompt("Innactivity detected",{ E.showPrompt("Innactivity detected",{
title:"Activity reminder", title:"Activity reminder",
buttons : {"Ok": true,"Dismiss": false} buttons : {"Ok": true,"Dismiss": false}
@ -52,11 +55,11 @@ if (global.activityreminder) {
load(); load();
}); });
Bangle.buzz(); Bangle.buzz();
setTimeout(load, 10000);
}, },
} }
); );
setInterval(global.activityreminder.run, 60000); setInterval(global.activityreminder.run, 2000);
} }