2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00
koreader/frontend/ui
NiLuJe 7e98b9de4b
PM: Minor refactor to suspend/resume code flow (#10426)
Make sure we only send Suspend/Resume events when we *actually* suspend/resume. This is done via the Device `_beforeSuspend`/`_afterResume` methods, and those were called by the *input handlers*, not the PM logic; which means they would fire, while the PM logic could actually take a smarter decision and *not* do what the event just sent implied ;).

(i.e., sleep with a cover -> suspend + actual suspend, OK; but if you then resume with a button -> input assumes resume, but PM will actually suspend again!).

Existing design issue made more apparent by #9448 ;).

Also fixes/generalizes a few corner-cases related to screen_saver_lock handling (e.g., don't allow USBMS during a lock).

And deal with the fallout of the main change to the Kobo frontlight ramp behavior ;).
2023-05-18 23:13:43 +02:00
..
data OTM: Attempt to deal with wonky config states (#10429) 2023-05-13 20:44:39 +02:00
elements Translator: translate current page (#10438) 2023-05-17 07:34:37 +03:00
message Calibre: Log errors on wireless connection failures (#9914) 2022-12-17 22:37:23 +01:00
network Fix some screen refresh effects (#10306) 2023-04-30 22:15:34 +02:00
plugin Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
widget Translator: translate current page (#10438) 2023-05-17 07:34:37 +03:00
bidi.lua
downloadmgr.lua
event.lua Cleanup various varargs shenanigans (#9624) 2022-10-12 19:59:48 +02:00
font.lua UI font fallbacks: use bold fonts if present for bold (#9621) 2022-10-25 12:18:46 +02:00
geometry.lua
gesturerange.lua
hook_container.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
language.lua [i18n] Enable Farsi (#10017) 2023-01-10 21:27:36 +01:00
menusorter.lua
otamanager.lua OTAManager: pick the right binaries on Android x86_64 2023-02-02 21:04:11 +01:00
quickstart.lua
renderimage.lua
rendertext.lua Clarify our OOP semantics across the codebase (#9586) 2022-10-06 02:14:48 +02:00
screensaver.lua Custom book covers (#10329) 2023-05-03 15:43:05 +03:00
size.lua
time.lua time: Fix another subtle FP issue in split_s_us 2022-10-25 01:47:01 +02:00
translator.lua Translator: translate current page (#10438) 2023-05-17 07:34:37 +03:00
trapper.lua Deal with table.pack corner-cases properly (#10350) 2023-04-24 00:21:05 +02:00
uimanager.lua PM: Minor refactor to suspend/resume code flow (#10426) 2023-05-18 23:13:43 +02:00
viewhtml.lua View HTML: add CSS helpers with long-press 2023-03-05 23:42:24 +01:00
wikipedia.lua DictQuickLookup: add button to show list of results 2023-05-12 20:12:10 +02:00