Skip to content
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

Add support for boyue P101 #522

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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