Skip to content

PowerD: Unbreak frontlight toggle notifications outside of Kobo#10597

Merged
NiLuJe merged 3 commits into
koreader:masterfrom
NiLuJe:master
Jun 25, 2023
Merged

PowerD: Unbreak frontlight toggle notifications outside of Kobo#10597
NiLuJe merged 3 commits into
koreader:masterfrom
NiLuJe:master

Conversation

@NiLuJe

@NiLuJe NiLuJe commented Jun 19, 2023

Copy link
Copy Markdown
Member

Fix #10588
Regression since #10305


This change is Reviewable

@NiLuJe

NiLuJe commented Jun 19, 2023

Copy link
Copy Markdown
Member Author

Draft because I need more bandwidth to see if I can simply hide the ugliness in Generic's toggleFrontlight (not-the-HW imp one), to leave the messy implementation details solely inside the Kobo imp...

Because this thing arguably has zero business being handled in a platform implementation...

@NiLuJe

NiLuJe commented Jun 19, 2023

Copy link
Copy Markdown
Member Author

Also, dropped the broadcast on Android because it's already handled by the Generic public API, no need to do it twice :?.

NiLuJe added 3 commits June 23, 2023 13:00
don't leak through to *other* implementations

(i.e., leave the Kobo mess in Kobo land, with only a minimal impact on
the public API and its implementation).
no return or nil will behave just fine, so forgo an explicit return
false to KISS.
@NiLuJe NiLuJe marked this pull request as ready for review June 23, 2023 11:00
@NiLuJe NiLuJe requested review from Frenzie, pazos and poire-z as code owners June 23, 2023 11:00
@NiLuJe

NiLuJe commented Jun 23, 2023

Copy link
Copy Markdown
Member Author

There, rejiggered the design a bit so that the Kobo implementation details don't leak through to other platform's implementations (e.g., Android).

@NiLuJe NiLuJe merged commit 55869b8 into koreader:master Jun 25, 2023
@Frenzie Frenzie added this to the 2023.06 milestone Jun 25, 2023
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
…ader#10597)

Fix koreader#10588
Regression since koreader#10305

While we're there, rejig the FL toggle callback shenanigans so that implementation details don't leak through to *other* implementations.
(i.e., leave the Kobo mess in Kobo land, with only a minimal impact on the public API and its implementation).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontlight enabled/disabled message

2 participants