Skip to content

Commit

Permalink
Add support to Onyx Tab Ultra C Pro (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
allepet authored Jan 9, 2025
1 parent 70c71d7 commit 339896f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/main/java/org/koreader/launcher/device/DeviceInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ object DeviceInfo {
ONYX_POKE_PRO,
ONYX_TAB_ULTRA,
ONYX_TAB_ULTRA_C,
ONYX_TAB_ULTRA_C_PRO,
PUBU_PUBOOK,
RIDI_PAPER_3,
SONY_CP1,
Expand Down Expand Up @@ -494,6 +495,10 @@ object DeviceInfo {
MANUFACTURER == "onyx" && MODEL == "tabultrac"
-> Id.ONYX_TAB_ULTRA_C

// Onyx Tab Ultra C Pro
BRAND == "onyx" && PRODUCT == "tabultracpro"
-> Id.ONYX_TAB_ULTRA_C_PRO

// Pubu Pubook
MANUFACTURER == STR_ROCKCHIP && BRAND == STR_ROCKCHIP && MODEL == "pubook" && DEVICE == "pubook" && HARDWARE == "rk30board"
-> Id.PUBU_PUBOOK
Expand Down Expand Up @@ -590,6 +595,7 @@ object DeviceInfo {
Id.ONYX_NOVA_AIR_C,
Id.ONYX_NOTE_AIR_3C,
Id.ONYX_TAB_ULTRA_C,
Id.ONYX_TAB_ULTRA_C_PRO,
-> true else -> false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ object EPDFactory {
DeviceInfo.Id.ONYX_POKE_PRO,
DeviceInfo.Id.ONYX_TAB_ULTRA,
DeviceInfo.Id.ONYX_TAB_ULTRA_C,
DeviceInfo.Id.ONYX_TAB_ULTRA_C_PRO,
-> {
logController("Onyx/Qualcomm")
OnyxEPDController()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ object LightsFactory {
DeviceInfo.Id.ONYX_PAGE,
DeviceInfo.Id.ONYX_POKE5,
DeviceInfo.Id.ONYX_TAB_ULTRA_C,
DeviceInfo.Id.ONYX_TAB_ULTRA_C_PRO,
-> {
logController("Onyx Adb")
OnyxAdbLightsController()
Expand Down

0 comments on commit 339896f

Please sign in to comment.