Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerD: Unbreak frontlight toggle notifications outside of Kobo #10597

Merged
merged 3 commits into from Jun 25, 2023

Conversation

NiLuJe
Copy link
Member

@NiLuJe NiLuJe commented Jun 19, 2023

Fix #10588
Regression since #10305


This change is Reviewable

@NiLuJe
Copy link
Member Author

NiLuJe commented Jun 19, 2023

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
Copy link
Member Author

NiLuJe commented Jun 19, 2023

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

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
Copy link
Member Author

NiLuJe commented Jun 23, 2023

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
3 checks passed
@Frenzie Frenzie added this to the 2023.06 milestone Jun 25, 2023
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