Skip to content

Commit

Permalink
TRY 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Scapesfear committed Dec 24, 2024
1 parent d4d70f0 commit cc36071
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions AnkiDroid/src/main/java/com/ichi2/anki/AnkiDroidApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -436,13 +436,19 @@ open class AnkiDroidApp :
val partialMatch =
knownEInkDevices.any { device ->
(
currentDevice.manufacturer.contains(device.manufacturer.lowercase().trim()) ||
device.manufacturer.lowercase().trim().contains(currentDevice.manufacturer)
currentDevice.manufacturer.contains(device.manufacturer.lowercase().trim()) ||
device.manufacturer
.lowercase()
.trim()
.contains(currentDevice.manufacturer)
) &&
(
device.manufacturer.lowercase().trim().contains(currentDevice.manufacturer) ||
(
device.manufacturer
.lowercase()
.trim()
.contains(currentDevice.manufacturer) ||
currentDevice.model.contains(device.model.lowercase().trim())
)
)
}

if (partialMatch) {
Expand Down

0 comments on commit cc36071

Please sign in to comment.