1
0
Fork 0

widancs: respect Quiet Mode

master
Richard de Boer 2021-03-23 19:54:25 +01:00
parent 6f4913bf5f
commit d23954a3f7
3 changed files with 6 additions and 5 deletions

View File

@ -2225,7 +2225,7 @@
"name": "Apple Notification Widget", "name": "Apple Notification Widget",
"shortName":"ANCS Widget", "shortName":"ANCS Widget",
"icon": "widget.png", "icon": "widget.png",
"version":"0.06", "version":"0.07",
"description": "Displays call, message etc notifications from a paired iPhone. Read README before installation as it only works with compatible apps", "description": "Displays call, message etc notifications from a paired iPhone. Read README before installation as it only works with compatible apps",
"readme": "README.md", "readme": "README.md",
"tags": "widget", "tags": "widget",

View File

@ -4,5 +4,4 @@
0.04: Works on both standard and modified firmware 0.04: Works on both standard and modified firmware
0.05: Bug fixes w.r.t. reconnection 0.05: Bug fixes w.r.t. reconnection
0.06: Update README - Release version 0.06: Update README - Release version
0.07: Respect Quiet Mode

View File

@ -187,9 +187,11 @@
//we may already be displaying a prompt, so clear it //we may already be displaying a prompt, so clear it
E.showPrompt(); E.showPrompt();
if (screentimeout) clearTimeout(screentimeout); if (screentimeout) clearTimeout(screentimeout);
Bangle.setLCDPower(true); if (!(require('Storage').readJSON('setting.json',1)||{}).quiet) {
Bangle.setLCDPower(true);
}
SCREENACCESS.request(); SCREENACCESS.request();
if (!buzzing){ if (!buzzing && !(require('Storage').readJSON('setting.json',1)||{}).quiet){
buzzing=true; buzzing=true;
Bangle.buzz(500).then(()=>{buzzing=false;}); Bangle.buzz(500).then(()=>{buzzing=false;});
} }