Skip to content

Commit

Permalink
Tolino Epos 2 support (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugleo authored Oct 7, 2024
1 parent a0f9966 commit 6c749f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 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 @@ -165,6 +165,7 @@ object DeviceInfo {
RIDI_PAPER_3,
TAGUS_GEA,
TOLINO_EPOS1,
TOLINO_EPOS2,
TOLINO_PAGE2,
TOLINO_SHINE3,
TOLINO_VISION4,
Expand Down Expand Up @@ -275,6 +276,7 @@ object DeviceInfo {
private val SONY_RP1: Boolean
private val TAGUS_GEA: Boolean
private val TOLINO_EPOS1: Boolean
private val TOLINO_EPOS2: Boolean
private val TOLINO_EPOS3: Boolean
private val TOLINO_PAGE2: Boolean
private val TOLINO_SHINE3: Boolean
Expand Down Expand Up @@ -651,6 +653,12 @@ object DeviceInfo {
&& DEVICE.contentEquals(STR_NTX)
&& HARDWARE.contentEquals("e70q20")

// Tolino Epos 2
TOLINO_EPOS2 = BRAND.contentEquals(STR_KOBO)
&& MODEL.contentEquals(STR_TOLINO)
&& DEVICE.contentEquals(STR_NTX)
&& HARDWARE.contentEquals("e80k00")

// Tolino Epos 3
TOLINO_EPOS3 = BRAND.contentEquals(STR_KOBO)
&& MODEL.contentEquals("tolino epos 3")
Expand Down Expand Up @@ -846,6 +854,7 @@ object DeviceInfo {
lightsMap[LightsDevice.RIDI_PAPER_3] = RIDI_PAPER_3
lightsMap[LightsDevice.TAGUS_GEA] = TAGUS_GEA
lightsMap[LightsDevice.TOLINO_EPOS1] = TOLINO_EPOS1
lightsMap[LightsDevice.TOLINO_EPOS2] = TOLINO_EPOS2
lightsMap[LightsDevice.TOLINO_PAGE2] = TOLINO_PAGE2
lightsMap[LightsDevice.TOLINO_SHINE3] = TOLINO_SHINE3
lightsMap[LightsDevice.TOLINO_VISION4] = TOLINO_VISION4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ object LightsFactory {
DeviceInfo.LightsDevice.MEEBOOK_P6,
DeviceInfo.LightsDevice.RIDI_PAPER_3,
DeviceInfo.LightsDevice.TOLINO_EPOS1,
DeviceInfo.LightsDevice.TOLINO_EPOS2,
DeviceInfo.LightsDevice.TOLINO_SHINE3,
DeviceInfo.LightsDevice.TOLINO_VISION4,
DeviceInfo.LightsDevice.TOLINO_VISION5 -> {
Expand Down

0 comments on commit 6c749f8

Please sign in to comment.