-
Notifications
You must be signed in to change notification settings - Fork 85
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
rework DeviceInfo.kt #526
rework DeviceInfo.kt #526
Conversation
According to #432, the generic controller is the right choice for the Onyx Palma. |
e788cd9
to
ba80e04
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me
(but note, I didn't check everything in detail ;-) )
Yes, lightsMap[LightsDevice.ONYX_PALMA] = ONYX_PALMA was added by mistake |
ba80e04
to
bc2e5a9
Compare
bc2e5a9
to
51f357e
Compare
99e005f
to
e828a12
Compare
d96d77e
to
15233ac
Compare
Reduce duplication to make it easier to maintain. Fix the following issues: - possible problem with `EINK` value on `TOLINO_EPOS3` devices (since both `TOLINO` and `TOLINO_EPOS3` booleans would be set) - `EINK` was never set to `EinkDevice.TOLINO_VISION6`, but checked in `device/EPDFactory.kt` - same with `HANVON_960` & `HYREAD_MINI6` - `LIGHTS` was never set to `LightsDevice.ONYX_NOTE_PRO`, but checked in `device/LightsFactory.kt` - `LIGHTS` could be set to `LightsDevice.ONYX_PALMA`, but was never checked in `device/LightsFactory.kt` Note: also drop device properties: `is_boyue` (unused) & `is_tolino` (only used to add direction pad mappings, details were added to the relevant wiki page instead), and no hardware rotation quirk (which was an incomplete emulator only workaround).
15233ac
to
f8c12ad
Compare
Regression from koreader#526.
Reduce duplication to make it easier to maintain.
Fix the following issues:
EINK
value onTOLINO_EPOS3
devices (since bothTOLINO
andTOLINO_EPOS3
booleans would be set)EINK
was never set toEinkDevice.TOLINO_VISION6
, but checked indevice/EPDFactory.kt
HANVON_960
&HYREAD_MINI6
LIGHTS
was never set toLightsDevice.ONYX_NOTE_PRO
, but checked indevice/LightsFactory.kt
Still not fixed:
-LIGTS
could be set toLightsDevice.ONYX_PALMA
, but was never checked indevice/LightsFactory.kt
Also address #483 (comment), will conflict with #525.
This change is