Skip to content

Commit

Permalink
Add support for boyue P101 (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectDay20 authored Oct 7, 2024
1 parent 26f9f10 commit a0f9966
Show file tree
Hide file tree
Showing 2 changed files with 7 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 @@ -39,6 +39,7 @@ object DeviceInfo {
BOYUE_P6,
BOYUE_P61,
BOYUE_P78,
BOYUE_P101,
BOYUE_S62,
BOYUE_T61,
BOYUE_T62,
Expand Down Expand Up @@ -197,6 +198,7 @@ object DeviceInfo {
private val BOYUE_P6: Boolean
private val BOYUE_P61: Boolean
private val BOYUE_P78: Boolean
private val BOYUE_P101: Boolean
private val BOYUE_S62: Boolean
private val BOYUE_T61: Boolean
private val BOYUE_T62: Boolean
Expand Down Expand Up @@ -312,6 +314,9 @@ object DeviceInfo {
// Boyue Likebook P78
BOYUE_P78 = BOYUE && PRODUCT.contentEquals("p78")

// Boyue Likebook P101
BOYUE_P101 = BOYUE && PRODUCT.contentEquals("p101")

// Boyue Likebook LemonRead S62A
BOYUE_S62 = BOYUE && PRODUCT.contentEquals("s62")

Expand Down Expand Up @@ -714,6 +719,7 @@ object DeviceInfo {
deviceMap[EinkDevice.BOYUE_P6] = BOYUE_P6
deviceMap[EinkDevice.BOYUE_P61] = BOYUE_P61
deviceMap[EinkDevice.BOYUE_P78] = BOYUE_P78
deviceMap[EinkDevice.BOYUE_P101] = BOYUE_P101
deviceMap[EinkDevice.BOYUE_S62] = BOYUE_S62
deviceMap[EinkDevice.BOYUE_T61] = BOYUE_T61
deviceMap[EinkDevice.BOYUE_T62] = BOYUE_T62
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ object EPDFactory {
DeviceInfo.EinkDevice.BOYUE_P6,
DeviceInfo.EinkDevice.BOYUE_P61,
DeviceInfo.EinkDevice.BOYUE_P78,
DeviceInfo.EinkDevice.BOYUE_P101,
DeviceInfo.EinkDevice.BOYUE_S62,
DeviceInfo.EinkDevice.BOYUE_T78D,
DeviceInfo.EinkDevice.BOYUE_T80D,
Expand Down

0 comments on commit a0f9966

Please sign in to comment.