forked from FOSS/BangleApps
widancs: respect Quiet Mode
parent
6f4913bf5f
commit
d23954a3f7
|
@ -2225,7 +2225,7 @@
|
|||
"name": "Apple Notification Widget",
|
||||
"shortName":"ANCS Widget",
|
||||
"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",
|
||||
"readme": "README.md",
|
||||
"tags": "widget",
|
||||
|
|
|
@ -4,5 +4,4 @@
|
|||
0.04: Works on both standard and modified firmware
|
||||
0.05: Bug fixes w.r.t. reconnection
|
||||
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
|
||||
E.showPrompt();
|
||||
if (screentimeout) clearTimeout(screentimeout);
|
||||
Bangle.setLCDPower(true);
|
||||
if (!(require('Storage').readJSON('setting.json',1)||{}).quiet) {
|
||||
Bangle.setLCDPower(true);
|
||||
}
|
||||
SCREENACCESS.request();
|
||||
if (!buzzing){
|
||||
if (!buzzing && !(require('Storage').readJSON('setting.json',1)||{}).quiet){
|
||||
buzzing=true;
|
||||
Bangle.buzz(500).then(()=>{buzzing=false;});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue