Skip to content

Commit 7b131e7

Browse files
committed
Allow fast load back to clock for some apps
1 parent 406e53e commit 7b131e7

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

apps/about/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
0.13: Bangle.js 2: Use setUI to add software back button
1414
0.14: Add automatic translation of more strings
1515
0.15: Minor code improvements
16+
0.16: Make able to fast-load back to clock

apps/about/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "about",
33
"name": "About",
4-
"version": "0.15",
4+
"version": "0.16",
55
"description": "Bangle.js About page - showing software version, stats, and a collaborative mural from the Bangle.js KickStarter backers",
66
"icon": "app.png",
77
"tags": "tool,system",

apps/qrconnect/ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
0.01: New App!
22
0.02: Swapped to using libqr
3-
Allow the URL to be specified by {url:""} in qrconnect.json
3+
Allow the URL to be specified by {url:""} in qrconnect.json
4+
0.03: Allow fast load back to clock

apps/qrconnect/app.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{
12
// force colours - don't invert if theme different as this can break readers
23
g.setColor("#000").setBgColor("#fff").clear();
34
// get URL base
@@ -21,9 +22,13 @@ NRF.ignoreWhitelist = 1;
2122
// Button to return
2223
Bangle.setUI({
2324
mode : "custom",
24-
btn : function(n) { load(); }
25+
btn(n) { Bangle.load(); },
26+
remove() {
27+
// nothing to do, but we define this to show we can fast load
28+
}
2529
});
2630
// force unlocked and backlight on
2731
Bangle.setLocked(0);
2832
Bangle.setLCDPower(1);
29-
Bangle.setLCDTimeout(0);
33+
Bangle.setLCDTimeout(0);
34+
}

0 commit comments

Comments
 (0)