From 339896fc1c13b5372caf6aaf66e662817045a002 Mon Sep 17 00:00:00 2001 From: alle Date: Thu, 9 Jan 2025 14:11:15 +0100 Subject: [PATCH] Add support to Onyx Tab Ultra C Pro (#535) --- .../main/java/org/koreader/launcher/device/DeviceInfo.kt | 6 ++++++ .../main/java/org/koreader/launcher/device/EPDFactory.kt | 1 + .../main/java/org/koreader/launcher/device/LightsFactory.kt | 1 + 3 files changed, 8 insertions(+) diff --git a/app/src/main/java/org/koreader/launcher/device/DeviceInfo.kt b/app/src/main/java/org/koreader/launcher/device/DeviceInfo.kt index 0fe8d8bb1..4de361ef2 100644 --- a/app/src/main/java/org/koreader/launcher/device/DeviceInfo.kt +++ b/app/src/main/java/org/koreader/launcher/device/DeviceInfo.kt @@ -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, @@ -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 @@ -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 } } diff --git a/app/src/main/java/org/koreader/launcher/device/EPDFactory.kt b/app/src/main/java/org/koreader/launcher/device/EPDFactory.kt index f76f1f10c..3e95ba8bd 100644 --- a/app/src/main/java/org/koreader/launcher/device/EPDFactory.kt +++ b/app/src/main/java/org/koreader/launcher/device/EPDFactory.kt @@ -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() diff --git a/app/src/main/java/org/koreader/launcher/device/LightsFactory.kt b/app/src/main/java/org/koreader/launcher/device/LightsFactory.kt index 1676c1142..736c93812 100644 --- a/app/src/main/java/org/koreader/launcher/device/LightsFactory.kt +++ b/app/src/main/java/org/koreader/launcher/device/LightsFactory.kt @@ -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()