Commit Graph

3403 Commits (050c7a96ac6d7b0bd6f05486f81a3c2bbfd55bae)

Author SHA1 Message Date
NiLuJe a51bd7a7fd
Nit: Make some cache keys prettier (#12354)
Completely pointless commit because I got triggered by a missing pipe in a log ;).
1 month ago
David 3450aaba99
Bug Fix: DPad conflict on Kindle Keyboard (#12341)
* fix conflicting panning and content selection

* accurate keyboard info message
1 month ago
David d706a129fa
[Menu] Remove title bar buttons from layout on hasSymKey or hasScreenKB devices (#12328) 1 month ago
NiLuJe 59476d38f4
OTM: Unbreak #11999 (#12337)
Steps need to happen in chronological order, (mostly) always.

Fix https://github.com/koreader/koreader/issues/12326
1 month ago
NiLuJe 4689e4f257
ImageWidget: Don't attempt to pan if we haven't rendered the bb yet (#12331)
Input events from ImageViewer can be caught between it clearing an old
ImageWidget & instantiating a new one, but before the new one has had a
chance to actually render anything.

Fix #12327
1 month ago
hius07 c46578aece
BookInfo: rating, review (#12313) 1 month ago
zwim dc3b638378
TextWidget: allow numbers in setText and updateSize (#12310)
Closes #12318.
1 month ago
David 2900eef276
Show/Hide Virtual keyboard and more keyboard shortcuts (#12162) 1 month ago
hius07 975efae929
ReaderSearch: "All text" improve (#12287) 1 month ago
mbays fd8c9be57f MultiInputWidget: add addWidget 2 months ago
mbays 092649338b InputDialog: add setAllowNewline 2 months ago
mbays f122e0082b MultiInputDialog: add enter_callback applying to all fields 2 months ago
mbays b5203686e3 InputDialog: call edited_callback on edit even when no Save/Close buttons 2 months ago
NiLuJe 7e8cdbcf65
PowerD: Keep track of frontlight state change by interactive callers for suspend/resume purposes (#12283)
While #12256 papered over the tracking of a *single* suspend -> (resume->suspend) series of events, things still go out of sync if you tack on *more* suspend/resume events after that.

The upside is that our *actual* tracking of suspend/resume is solid, so at least we're actually doing the right thing as far as PM is concerned.

The downside is that on Kobo, the frontlight handling code is full of delays, and the ramping down/up itself also takes some time, so things can quickly overrun into the wrong event.

This means a couple of things:

* We need to cancel any scheduled frontlight toggles and ramps on Kobo, to ensure that only the one from the *last* event received goes through, in an attempt to limit the amount of potential crossover.
* Tracking fl_was_on *cannot* reliably be done from the suspend/resume handlers (especially on Kobo), as the ramps themselves may cross over the event barriers (and we potentially cancel the task anyway), so this was moved to the very few interactive callers that will actually change the frontlight state.
* On Kobo, crossover is still *somewhat* possible because the ramps take time. It's mostly harmless for the ramp down, we just need to tweak the ramp down to start from the actual intensity to avoid a weird jump on the initial step if there's an inconsistency. For the ramp up, we potentially need to manually kill the light first, because off -> on assumes it *really* starts from off ;).

Followup to #12256
Fix #12246 (again)
2 months ago
Benoit Pierre a6663202b7
NetworkMgr: fix debug trace (#12297)
Prevent crash:
```
./luajit: frontend/util.lua:1092: attempt to get length of local 'str' (a nil value)
stack traceback:
        frontend/util.lua:1092: in function 'fixUtf8'
        frontend/ui/network/manager.lua:1109: in function 'requestToTurnOnWifi'
[…]
```
2 months ago
David 3992438872
[CoverBrowser.MosaicMenu] Increase focus underline thickness (#12189) 2 months ago
Frans de Jonge 764a482f8c
[fix] NetworkMgr: apply HTTP proxy setting on startup (#12260)
Fixes #12244.
2 months ago
hius07 e5fb836a81
ReaderFooter: improve (#12243) 2 months ago
NiLuJe 5c77774ca9
NetworkMgr: Attempt to handle wpa_supplicant rescans better (#12236)
Namely, in the face of wpa_supplicant doing multiple scans. Note that a backend PR will make this largely redundant, by actually fixing the core issue in our backend ;).

Also add more logging around the authentication status.
2 months ago
NiLuJe d59c837714
Kobo: Refactor various aspects of the Kaleido/MTK support (#12221)
* UIManager: Let the fb backend deal with Kaleido wfm promotion. This fixes a number of quirks that poisoned the refresh queue with spurious full-screen refreshes. See https://github.com/koreader/koreader-base/pull/1865 for more details.
* This also means we now disable Kaleido waveform modes when color rendering is disabled (remember to trash your thumbnail cache if you don't want to mix color w/ grayscale thumbnails, though).
* UIManager: Merge refreshes that share an edge, because that was driving me nuts (and would have most likely been merged by the kernel anyway). A perfect test-case is the FM, which trips two separate refreshes because of its title bar.
* ReaderFlipping: Use sensible dimensions, so that we only refresh the icon's region.
* ReaderBookmark: Only refresh the dogear instead of the whole page when toggling bookmarks.
* NetworkSetting: Make it a real boy, so it consistently refreshes properly on dismiss instead of relying on UIManager saving the day.
* Kobo: Aggressively prevent *both* suspend & standby while MTK devices are plugged-in, as both will horribly implode the kernel (we previously only prevent standby while charging).
* Kobo: Switch to 8bpp on B&W MTK devices (or when color rendering is disabled on Kaleido panels).
2 months ago
hius07 477d6865f1
toggleswitch: fix long-press (#12215) 2 months ago
hius07 b17bd967da
Page turns: invert vertical tap zones (#12195) 2 months ago
zwim df48d51eca
AltStatusBar/Footer: add the read timer value (#12002)
Closes #11950
2 months ago
Benoit Pierre 8ced47921a PageBrowser: factorize and fix thumbnail preloading code
Fix incorrect page range check: `p >= 1 or p < self.nb_pages`
should be `p >= 1 and p <= self.nb_pages`.
2 months ago
Benoit Pierre 0c17941ffb kopt: color support
Keep colors when reflowing documents.
2 months ago
hius07 5342b8cc2a
Text editor: enhancement (#12176) 2 months ago
David 78f69fd580
Add 'Use left and right keys for page turning' option (#12174) 2 months ago
poire-z 7ebd067a95
Footnote popup: fix XHTML handling (#12158)
Latest MuPDF update changed HTML parsing, and use a better
HTML5 parser, which may cause some issues with the XHTML
we get from crengine.
So, for footnote popups, be sure we use MuPDF's XHTML parser.
2 months ago
hius07 4d50787637
Dispatcher: prettify action list (#12133) 3 months ago
Martín Fernández 0faccff9bc
Fix for OTA updates w/ zsync (#12120)
Fixes #12115
3 months ago
David 2c9bb33f66
InputText, DictQuickLookup: add keyboard shortcut for prev/next dict, toggle virtual keyboard, comma on shift+. (#12078) 3 months ago
hius07 33ae788575
configdialog: fix toggle (#12104) 3 months ago
hius07 0ae84642e2
configdialog: keep original options intact (#12093) 3 months ago
Martín Fernández 617618d587
Add Device:otaModel() (#12014)
Devices with a single target might want to specify it in `Device.ota_model`
Devices with multiple targets want to override the function or to specify `ota_model` variants for each target.
3 months ago
Marek Veselý 4c4cfa2db0
Kindle: add wifi selector (#12056)
* Kindle: Implement a NetworkMgr backend loosely based on WpaClient in order to allow feature-parity with hasWifiManager platforms. This involves dealing with the native wifid over lipc (the native IPC system, based on DBus), through custom Lua bindings (https://github.com/notmarek/openlipclua), since the stock ones lack support for the needed hasharray data type.
* NetworkMgr: Clear up leftover hallucinations from #10669, making `enableWifi` much simpler (and much more similar to `turnOnWifiAndWaitForConnection`).
* NetworkMgr: Made it clearer that `turnOnWifi` implementations *must* deal with `complete_callback`, as part of the aforementioned changes mean that it's *always* wrapped in a connectivity check, and we need that for proper event signaling.
* Android, Emu: Run `complete_callback` properly in `turnOnWifi`.
* Kindle: Support `powerd:isCharged()` on the PW2 (yes, this is random, it just happened to be my test device :D).
* NetworkMgr:disableWifi: Properly tear down any potential ongoing connection attempt (e.g., connectivity check).
* NetworkMgr:promptWifi: Make the "wifi enabled but not connected" popup clearer if there's an ongoing connection attempt, and gray out the "Connect" button in this case (as it would only lead to another "connection already in progress" popup anyway).
* NetworkMgr:reconnectOrShowNetworkMenu: Make *total* scanning failures fatal (they will lead to an immediate wifi teardown).
* NetworkMgr:reconnectOrShowNetworkMenu: Clear up the long-press behavior (which *always* shows the network list popup) so that it doesn't weirdly break all the things (technical term!).
* NetworkMgr:reconnectOrShowNetworkMenu: When we manage to connect to a preferred network on our own *before* showing the network list, make sure it is flagged as "connected" in said list.
* NetworkMgr:reconnectOrShowNetworkMenu: Make connection failures fatal in non-interactive workflows (they'll lead to a wifi teardown).
* NetworkSetting (the aforementioned network list widget): Clear NetworkMgr's "connection pending" flag on dismiss when nothing else will (i.e., when there's no connectivity check ticking).
3 months ago
David 799275d3a3
FileChooser: 0% > 'on hold' (#12037) 3 months ago
hius07 a1ae53c8e5
SkimTo dialog: compact mode (#12046) 3 months ago
jonnyl2 ad8e78cd09
Fix save screenshot dialog wasn't modal (#12067)
Screenshot dialog could not be interacted with in Text editor. Closes #12066.
3 months ago
hius07 527fd05d25
translator: fix settings menu order (#12051) 3 months ago
David 041ca074fb
[NT] MenuWidget: add keyboard shortcuts for start/end (#12065) 3 months ago
jonnyl2 844d1393e7
Fix Arabic keyboard layout (ظ key) (#12063)
Closes #12005.
3 months ago
zwim 8b88f5eb73
[ConfirmBox, MultiConfirmBox ...] remove margin around (#12039) 3 months ago
zwim 43c9ce4a9b
[time] Fix typos in documentation 3 months ago
mergen3107 a03195d524
Footer: add book authors item (#11999)
Closes #7642
3 months ago
hius07 ded709e3a1
InputContainer: consistent input type in onInput() (#12012) 3 months ago
NiLuJe 57c6fb6355 ScreenSaver: Consistently prefer the event message over the default
message

i.e., we do *NOT* want to see the default "Sleeping" message shown *in
conjunction* with the "reboot/poweroff" overlay messages.

Re: https://github.com/koreader/koreader/issues/12009#issuecomment-2167176139
3 months ago
Frans de Jonge d77e7b47a9
Fix Norwegian Bokmål-English Wiktionary download link (#11992)
Fixes #11970.

Apparently UTF-8 doesn't work unless it's URL-encoded.
3 months ago
Frans de Jonge 9724dcdf4b IsoLanguage: add Tesseract language names 3 months ago
Frans de Jonge 7da60815d1 Translate Tesseract language names
Fixes #11975.
3 months ago
Marek Veselý ab2f545075
Add kindlehf target (#11986)
for kindles after fw 5.16.3

* Add kindlehf mk file
* Update kodev to support kindlehf
* Update OTAManager logic to support kindlehf
3 months ago