Skip to content

Commit 716707e

Browse files
authored
Merge pull request #3742 from bobrippling/feat/drained-charging-instant
drained: redisplay immediately when charge status changes
2 parents e969d83 + 0fb7bf4 commit 716707e

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

apps/drained/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
0.05: Enhance menu: permit toggling bluetooth
77
0.06: Display clock in green when charging, with "charging" text
88
0.07: Correctly restore full power when the charged threshold is reached
9+
0.08: Redisplay immediately on changes to charging status

apps/drained/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ Bangle.on("charging", function (charging) {
118118
drainedInterval = clearInterval(drainedInterval);
119119
if (charging)
120120
drainedInterval = setInterval(checkCharge, interval * 60 * 1000);
121+
draw();
121122
});
122123
if (!keepStartup) {
123124
var storage = require("Storage");

apps/drained/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ Bangle.on("charging", charging => {
151151
drainedInterval = clearInterval(drainedInterval) as undefined;
152152
if(charging)
153153
drainedInterval = setInterval(checkCharge, interval * 60 * 1000);
154+
draw(); // redraw to update charging status on screen
154155
});
155156

156157
if(!keepStartup){

apps/drained/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "drained",
33
"name": "Drained",
4-
"version": "0.07",
4+
"version": "0.08",
55
"description": "Switches to displaying a simple clock when the battery percentage is low, and disables some peripherals",
66
"readme": "README.md",
77
"icon": "icon.png",

0 commit comments

Comments
 (0)