forked from FOSS/BangleApps
widancs: respect Quiet Mode
parent
6f4913bf5f
commit
d23954a3f7
|
@ -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",
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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;});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue