Merge branch 'master' into launch

master
Gordon Williams 2025-04-01 09:57:17 +01:00 committed by GitHub
commit b26bcadad5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 13 additions and 7 deletions

View File

@ -23,6 +23,7 @@
0.21: Make the "App source not found" warning less buggy
0.22: Add less padding between launcher items, use new font if available in 2v26+
0.23: Draw a placeholder screen right at the start to speed up apparent boot time
0.24: Fix fullscreen when fastloading the launcher. (TODO:fix back btn flicker)
0.24: Fix Launcher when a custom font from 2v26+ is specified (fix #3787)
Fix fullscreen when fastloading the launcher. (TODO:fix back btn flicker)
Fix showClocks setting not taking effect by now clearing cache when
changing those settings.
changing those settings.

View File

@ -16,7 +16,7 @@
font = "Vector"+(vectorval).toString();
} else{
font = settings.font;
scaleval = (font.split("x")[1])/20;
scaleval = g.setFont(font).stringMetrics("X").height / 20;
}
}
let height = 50*scaleval;
@ -109,4 +109,4 @@
if (!settings.fullscreen) // finally draw widgets
Bangle.drawWidgets();
}
}

View File

@ -31,3 +31,4 @@
0.28: Added an icon for disabled events
0.29: Improve clkinfo startup time by 10ms
0.30: Fix possible bug in toggling an alarm to on, from clkinfo
0.31: Ensure we reschedule alarms after setTimeZone has been called (fix #3791)

View File

@ -4,6 +4,7 @@
clearTimeout(Bangle.SCHED);
delete Bangle.SCHED;
}
delete E.setTimeZone; // delete any modified setTimeZone we added below
var alarms = require('Storage').readJSON('sched.json',1)||[];
var time = new Date();
var currentTime = (time.getHours()*3600000)+(time.getMinutes()*60000)+(time.getSeconds()*1000);
@ -25,6 +26,9 @@
normally.
If active[0].js is defined, just run that code as-is and not alarm.js */
Bangle.SCHED = setTimeout(active[0].js||'load("sched.js")',t);
// Override setTimeZone to ensure we reschedule alarms after it has been called - fix #3791
var tz = E.setTimeZone;
E.setTimeZone = function(z) { tz(z);eval(require("Storage").read("sched.boot.js")); };
} else { // check for new alarms at midnight (so day of week works)
Bangle.SCHED = setTimeout('eval(require("Storage").read("sched.boot.js"))', 86400000 - currentTime);
}

View File

@ -1,7 +1,7 @@
{
"id": "sched",
"name": "Scheduler",
"version": "0.30",
"version": "0.31",
"description": "Scheduling library for alarms and timers",
"icon": "app.png",
"type": "scheduler",

2
core

@ -1 +1 @@
Subproject commit 43dbadf5b9a41ff00aa6bef76d3360b510fb06a5
Subproject commit f83fa462d831eb0e93fe4ec2b48bfc98a785aa60

View File

@ -333,7 +333,7 @@ window.addEventListener('load', (event) => {
reloadLanguage();
});
if (!navigator.bluetooth) {
if ((typeof Android === "undefined") && !navigator.bluetooth) {
console.warn("No Web Bluetooth on this platform");
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
if (iOS) {