Replace the re-flash approach (which caused banding) with a redraw
approach that closes and redraws the sleep screen widget between flashes.
Also make flash count and delay configurable via a spinner widget, and
calculate suspend_wait_timeout dynamically based on the configured values.
Fixes#15702
* pdfdocument: rename deleteMarkupAnnotation call to deleteAnnotation
Follows the koreader-base rename of the subtype-agnostic delete helper
(pdf_delete_annot) from deleteMarkupAnnotation to deleteAnnotation.
Companion to koreader/koreader-base#2444.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* bump base
- mupdf: expose ink annotation support in the FFI layer (koreader/koreader-base#2444)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
On devices with a physical keyboard (e.g. Kindle), the on-screen keyboard
can already be toggled while a text field is focused via Shift/ScreenKB +
Home. This adds a lone tap of the physical Sym key as an additional, more
natural trigger.
Sym is otherwise a held modifier for the symbol layer, and Input:handleKeyBoardEv
swallows a bare modifier press/release before it becomes a key event. Detect a
Sym press+release with no other key in between and surface it as a dedicated
"SymPress" key event, which InputText handles the same way as the existing
Shift/ScreenKB + Home toggle. The symbol layer (Sym+<key>) is unaffected: any
intervening key press clears the lone-tap state, so only a true solo tap fires.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
```
./luajit: frontend/document/document.lua:391: attempt to concatenate field 'background_cleanup' (a nil value)
stack traceback:
frontend/document/document.lua:391: in function 'getFullPageHash'
frontend/document/document.lua:413: in function 'renderPage'
frontend/document/document.lua:534: in function 'drawPage'
frontend/apps/reader/modules/readerview.lua:450: in function 'drawSinglePage'
frontend/apps/reader/modules/readerview.lua:198: in function 'paintTo'
frontend/ui/widget/container/inputcontainer.lua:91: in function 'paintTo'
frontend/ui/uimanager.lua:1262: in function '_repaint'
frontend/ui/uimanager.lua:1485: in function 'handleInput'
frontend/ui/uimanager.lua:1585: in function 'run'
reader.lua:251: in main chunk
[C]: at 0x559b746b885b
```
Cf. #15401.
- correctly extract root-less dictionary archives (e.g. "reader.dict …"
dictionaries, close#15139), and avoid left-overs from a previous
extraction (to help in cases like #15448)
- fix extraction when a dictionary name contains characters that are
invalid for the target filesystem (e.g. the ":" in "Dictionnaire de
l'Académie Française: 8ème edition" on Kindle)
- improve download UI, including avoiding overlapping / out-of-order
dialogs ("Downloaded […]" dialog showing below the "Downloading" one)
On Kobo, isConnected is aliased to ifHasAnAddress, which returns true as
long as the interface holds any IP — including a stale lease from a
previous network. The early-return gate in turnOnWifiAndWaitForConnection
short-circuits before obtainIP() ever runs, so after switching networks
KOReader reports "Connected" while every request times out on the old
subnet's gateway.
Track the SSID a lease was obtained for (lease_ssid) and add
hasLeaseForCurrentNetwork(), which compares it against wpa_supplicant's
reported association. Guard the fast-path gates in
turnOnWifiAndWaitForConnection and doNothingAndWaitForConnection with it:
on a stale lease, release the old IP and fall through to the normal
reconnect path. lease_ssid is set in reconnectOrShowNetworkMenu (sync
connect) and connectivityCheck (async restore), and cleared when Wi-Fi
goes down or a connection is aborted.
When the backend cannot report an SSID (non-wpa_supplicant platforms),
hasLeaseForCurrentNetwork() returns true so connections are never churned
on uncertainty, preserving existing behaviour everywhere but Kobo.
Refs #14790, #14478, #14716
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GjgwQjZY2xoZPSuSXBJqv8
- `Device:ping4()`: do not use `struct icmphdr` (Linux specific),
idem with `struct iphdr`, which also need to be declared
differently depending on endianness (due to bitfields)
- `Device:retrieveNetworkInfo()`: use new `ffi/netinfo` module