From a201f9142b983361af92562ca1287568155a47a0 Mon Sep 17 00:00:00 2001 From: Stiralbios Date: Sun, 19 Jun 2022 21:03:17 +0200 Subject: [PATCH] [ClockFace] Revert ClockFace change like the PR #1985 solve the issue --- modules/ClockFace.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/ClockFace.js b/modules/ClockFace.js index 5020af23f..f8dc33287 100644 --- a/modules/ClockFace.js +++ b/modules/ClockFace.js @@ -58,6 +58,7 @@ ClockFace.prototype.tick = function() { }; if (!this._last) { g.clear(true); + if (global.WIDGETS) Bangle.drawWidgets(); g.reset(); this.draw.apply(this, [time, {d: true, h: true, m: true, s: true}]); } else { @@ -69,7 +70,6 @@ ClockFace.prototype.tick = function() { g.reset(); this.update.apply(this, [time, c]); } - if (global.WIDGETS) Bangle.drawWidgets(); this._last = now; if (this.paused) return; // called redraw() while still paused // figure out timeout: if e.g. precision=60s, update at the start of a new minute @@ -103,13 +103,12 @@ ClockFace.prototype.pause = function() { this.paused = true; // apps might want to check this if (this._pause) this._pause.apply(this); }; - ClockFace.prototype.resume = function() { if (this._timeout) return; // not paused delete this._last; this.paused = false; if (this._resume) this._resume.apply(this); - this.tick(); + this.tick(true); }; /**