Commit Graph

10291 Commits (master)
 

Author SHA1 Message Date
NiLuJe 18fff200ac GestureDetector: Be even *more* defensive with initial_tev records
Apparently, #11198 wasn't defensive enough...

Make those visible warnings, so we can see how much they actually happen
in the wild...

Closes #11209
5 months ago
Wim de With e7780c09f3 fixup! Process directory list items for mixed collation 5 months ago
Wim de With 128accafe3 fixup! Process directory list items for mixed collation 5 months ago
Wim de With 01642659d2 Process directory list items for mixed collation 5 months ago
Wim de With 98d92d37ab Refactor FileManager collation for easier patching 5 months ago
NiLuJe 3c63a5d8a8
GestureDetector: Switch buddy contacts to voidState in a safer manner (#11198)
Some platforms with horribly broken MT handling (hai, PB) will manage to
screw something up so bad that we end up with slots never running
through initialState on a contact down, so they never get an initial_tev
recorded.

Ensure we do that if necessary when switching a buddy to voidState to
avoid crashes throughout the code, which assumes everything is sane and
doesn't guard accesses to initial_tev

Re: #11196, #10950 & #11111
Closes: #11111
5 months ago
hugleo f990937f9f
Autocrop fix (#11194)
After some tests with the said document from https://github.com/koreader/koreader/issues/970 it seems like that the visual defect occurs for only semi-auto and manual crop modes.

I've removed auto-crop from the rule so fixes https://github.com/koreader/koreader/issues/4106 when using auto-crop.
5 months ago
hius07 498193c26d
InputText: Delete all and fix Select (#11182) 5 months ago
poire-z b361cec4ff ReaderStyleTweak: minor CSS suggestions popup fixes 5 months ago
poire-z c32ace4611 bump crengine: various optimizations and fixes
Includes:
- Avoid unnecessary string modifications
- Optimize LVHTMLParser::CheckFormat()
- lvfntman: fix stupid mistake
- css: speedup class matching
- fb2.css: empty paragraphs should have some line height
- CJK: fix bad ruby drawing on last paragraph line
5 months ago
hius07 b4424b4685
filemanagerhistory: fix non standard status (#11188) 5 months ago
hius07 dce12de09d
Profiles: fix update actions in gestures (#11175) 5 months ago
NiLuJe 4a64e02c68
ScreenSaverLock: Hide the popup on suspend (#11174)
Fix #11164 and involves a drive-by fix:

Kindle: Send Suspend/Resume event regardless of the screen saver state

If we get the events, it means stuff happened, we can't just only honor
it in the most common workflows ;).

This effectively reverts a tiny bit of #10426 (I was sort of expecting
this to be problematic at the time, and I most likely hadn't tested it).
5 months ago
mergen3107 33c7f05158
Kindle scribe gyro and pen support (#11159)
* Kindle Scribe: add G-sensor and pen support, fix startup orientation

* Fixes #11144 and #11156
5 months ago
hius07 d3787eee64
filemanagershortcuts: fix menu (#11167) 5 months ago
Monirzadeh 6527d7f1ab
Fix English-Persian dictionary link (#11165)
Spaces should be encoded.
5 months ago
NiLuJe 5ef4db6176 Bump android/luajit-launcher
https://github.com/koreader/android-luajit-launcher/pull/449
5 months ago
NiLuJe f42893d3d1 Bump base
https://github.com/koreader/koreader-base/pull/1704
5 months ago
hius07 f6fb35fd98
QuickMenu: keep open on apply (#11135) 5 months ago
NiLuJe 82e7ebd6df
ReaderView: Flash when paging *away* from images, too (#11152)
Reword the `Always flash around pages with images` Menu/Dispatcher entry
accordingly.

Fix #11143
5 months ago
NiLuJe 9af3e95d9d Kindle: Fix a smattering of frontlight bugs
* afterResume had *two* different implementations, so the historical one
  that handled frontlight fixups no longer ran
  (regression since #10426)
* isFrontlightOn was completely broken, for a couple of reasons:
  * There was no is isFrontlightOnHW implementation, so when it ran, it
    mostly always thought the frontlight was on, because
    self.fl_intensity doesn't change on toggle off.
  * _decideFrontlightState was never called on Kindle,
    so isFrontlightOnHW was never really called, making isFrontlightOn
    completely useless. Call it in setIntensityHW's coda, as it ought to
    be. And properly document that.

Generic *was* calling _decideFrontlightState is setIntensity, but
*before* actually setting the frontlight, which makes no goddamn sense,
so get rid of that, too.

* Also fix frontlight toggle notifications (regression since #10305)

TL;DR: The PowerD API being a mess strikes again.
5 months ago
NiLuJe 2554aee7a3 Gestures: Make the edge swipe zones configurable
As "global defaults" (i.e., "advanced settings" in the UI).

These were the only zones not available there, for some reason (probably
they were new and we try to avoid adding new defaults).

Fix #11142
5 months ago
Monirzadeh fbd012b928
Add English to Persian dictionary (#11160) 5 months ago
NiLuJe bf03f40ef2
Dispatcher: Allow toggling USBMS (#11123)
It's right next to actual exit/restart actions, so it'll never ask for confirmation.
5 months ago
NiLuJe bba48fc1bf
Widgets: Unschedule timeouts on early close (#11126)
Affects Notification, InfoMessage & QRMessage

Includes a drive-by fix for Trapper interactions that have been broken for... a long while ;).
5 months ago
NiLuJe bc7ea8602e
UIManager: Don't block gestures for new widgets when input is disabled (#11122)
They'll be disabled again when the widget in question is dismissed.

This exposes a couple of semi-obvious but edge-casey footguns to the user, but a hardened implementation is way uglier. See PR for details.
5 months ago
Ben Bell f92c0eae3b
Exporter: fix XMNote export, add author field (#11134)
Optimize #11087 :

1. In `isReadyToExport`, check if the ip is set. If not, then the user cannot enable xmnote export.
2. Add author field in highlights.
5 months ago
WangKe dea94026f1
Exporter: add XMNote export (#11087) 5 months ago
Frans de Jonge 7870e83410
Bump luajit-luancher: support Onyx Nova, warmth support Tolino Vision 4, LuaJIT 20231109 (#11128)
* Use Tolino NTX on Tolino Vision 4 to add warmth support <https://github.com/koreader/android-luajit-launcher/pull/446> @ailin-nemui
* Support for Onyx Nova <https://github.com/koreader/android-luajit-launcher/pull/443> @hugleo
* Bump LuaJIT to 20231109 <https://github.com/koreader/android-luajit-launcher/pull/447> @NiLuJe (same as in <https://github.com/koreader/koreader/pull/11127>)
5 months ago
Frans de Jonge 51b4d5e646
Bump base: some dependencies, minor Makefile fixes (#11127)
* Bump HB to 8.3.0 (koreader/koreader-base#1694)
* Bump LuaJIT to 20231109 (koreader/koreader-base#1694)
* crengine: drop unnecessary MuPDF dependency (koreader/koreader-base#1700)
* cmake: fix ko_write_gitclone_script function (koreader/koreader-base#1702)
* fix crengine, koreader-cre, and mupdf rules (koreader/koreader-base#1701)
* sqlite: don't set HAVE_LOG2=0 on Android (koreader/koreader-base#1703)
5 months ago
hius07 d99c70b5e1
ReaderHighlight: adjustable highlight dialog position (#11116) 5 months ago
hius07 88d6613fed
Folder shortcuts: new markers, buttons (#11108)
Buttons to add/remove folder shortcut from Plus menu and from folder popup dialog.
A marker ("empty star") for folders with shortcuts.
5 months ago
hius07 ed46dca886
MoveToArchive: fix DocSettings:updateLocation() call (#11103)
Closes #11101.
5 months ago
hius07 da8e23c011
InputDialog: tap outside to close dialog if keyboard is hidden (#11094) 6 months ago
hius07 082ef9b545
FileChooser: fix reverse sorting of folders (#11093)
Do not apply "reverse sorting" to folders in sorting modes "type", "size", "percentage".
In that modes folders are sorted by name.
6 months ago
poire-z 894cb3190d
Page browser: show nightmode thumbnails when in nightmode (#11091)
Just prevent page thumbnails ImageWidgets to be nightmode
inverted, unlike all other ones which are expected to be
double inverted to get their original colors shown.
The same thumbnail can be used and cached in both day and
night modes, unless "nightmode_images" is enabled and have
crengine itself invert images, making thumbnails different.
6 months ago
hius07 4044c81a5a
History: update on deleting a folder (#11090) 6 months ago
Wim de With 17a4aa962f
Fix connection bug with non-ASCII SSIDs in wpa_supplicant (#11089)
* Bump base

includes:

koreader/koreader-base#1691
koreader/koreader-base#1692
koreader/koreader-base#1689
koreader/koreader-base#1690
koreader/koreader-base#1693

* Integrate decoding of SSIDs within wpa_supplicant

The UTF-8 decoding of SSIDs is specific to wpa_supplicant. In this
patch, we move all of this decoding logic to the wpa_supplicant module.
We expose the raw bytes of the SSID to the NetworkMgr code, and make
sure to always fix bad UTF-8 before we display the SSID to the user.

Within the wpa_supplicant module, we replace the call to the
wpa_passphrase binary to get the PSK with a direct function call to
OpenSSL. This allows us to calculate the PSK over any arbitrary bytes,
including UTF-8. In the same vein, we use the hex-encoded SSID to
communicate with wpa_supplicant when setting up the network to support
arbitrary bytes in the SSID.

Unfortunately, we also remove the tests, as there is no way to unit test
local functions.
6 months ago
hius07 d0d3cf78f9
History: search (#11084) 6 months ago
hius07 51f3115b90
Profiles: fix updating gestures (#11072) 6 months ago
ElimGarak1 2e2ca76a03
Add new PocketBook InkPad Color 3 (743K3) (#11079)
To add the new PocketBook InkPad Color 3 (743K3) with E Ink Kaleido™ 3 screen.
6 months ago
hius07 68aa209a6c
Open with... improvement (#11056)
Allows associating filetypes with non-document providers (like ImageViewer or TextViewer) to "open" (view) these files by a tap in file browser.
6 months ago
NiLuJe 94a82087de
Device: Don't leave hasSeamlessWifiToggle enabled when hasWifiToggle is disabled (#11060)
Fix #11059
6 months ago
NiLuJe fee2b79829
Kindle: The KT5 requires the same input delving shenanigans as the PW5 (#11064) 6 months ago
hius07 4391267dfa menu_keyboard_layout: add setting to disable swipes 6 months ago
hius07 414e74f626 virtualkeyboard: add setting to disable swipes 6 months ago
Frans de Jonge 48dfe6ce05
Bump base for improvements by @benoit-pierre (#11069)
Includes:

* Input: Ensure clearTimer won't compute a lower nfds value than one of our opened fds <https://github.com/koreader/koreader-base/pull/1685>

Also includes various dependency bumps.

<16a856a637...master>
6 months ago
zwim 58cb1ff42b
[AutoWarmth] Fix sanity checks with disabled schedule entries (#11062) 6 months ago
hius07 b70f866656
DocSettings (again) (#11020)
Cleaning and optimizing Docsettings code.
6 months ago
Frans de Jonge 873503369c
Update translations for v2023.10 (#11053) 6 months ago