Skip to content

Commit

Permalink
TRY 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Scapesfear committed Dec 24, 2024
1 parent 5a23663 commit d4d70f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 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,13 @@ 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) ||
currentDevice.model.contains(device.model.lowercase().trim())
)
(
device.manufacturer.lowercase().trim().contains(currentDevice.manufacturer) ||
currentDevice.model.contains(device.model.lowercase().trim())
)
}

if (partialMatch) {
Expand Down

0 comments on commit d4d70f0

Please sign in to comment.