slopeclock/pp - Reset graphics to remove font from memory

pull/2272/head
Martin Boonk 2022-11-14 19:10:19 +01:00
parent f0a270b1b2
commit 40263f0ca9
2 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,8 @@ Bangle.setUI({
animInterval = undefined;
if (drawTimeout) clearTimeout(drawTimeout);
drawTimeout = undefined;
// Remove the loaded font if app is changed during animation
g.reset();
delete Graphics.prototype.setFontPaytoneOne;
}});
// Load widgets

View File

@ -230,6 +230,8 @@ Bangle.setUI({
animInterval = undefined;
if (drawTimeout) clearTimeout(drawTimeout);
drawTimeout = undefined;
// Remove the loaded font if app is changed during animation
g.reset();
delete Graphics.prototype.setFontPaytoneOne;
}});
// Load widgets