Repository navigation
How often does the widget wake the phone, and why is its countdown sometimes late? #503
|
I am worried the widget's live countdown drains the battery. Sometimes it also still shows the lesson after the bell has rung. How often does it update? |
Replies: 1 comment
|
How often the widget wakes the phone is an open decision (#122); nobody has measured its accuracy and battery use under real Doze (#109). The widget does not redraw on a fixed timer; it sets one alarm, for the moment when its text next changes:
The launcher draws the ticking Counting from midnight to the first bell, the tiers above add up to about 34 device-waking alarms a night — the design's costliest stretch. Sizes larger than 2×1 tick in the launcher already, so the alarms above exist only to refresh the 2×1; whether to wake on the bell alone and let it show a coarser figure overnight is open in #122. Background sync is separate, running once an hour by default; «Настройки → Синхронизация → Как часто обновлять» sets the interval. Why a change can come late:
More: https://github.com/lumenpearson/lessons/blob/main/docs/widget.md#updates |
How often the widget wakes the phone is an open decision (#122); nobody has measured its accuracy and battery use under real Doze (#109).
The widget does not redraw on a fixed timer; it sets one alarm, for the moment when its text next changes:
The launcher draws the ticking
MM:SSbeside «до звонка» or «до начала», second by second, without waking the app. The 2×1 size has no room for the ticking seconds, so its minutes move only with the alarms above.Counting from midnight to the first b…