From cc360717a9e46822f80e6c4358e2ee8c0ae74519 Mon Sep 17 00:00:00 2001 From: Divyanshu Yadav <154064821+Scapesfear@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:45:33 +0530 Subject: [PATCH] TRY 4 --- .../src/main/java/com/ichi2/anki/AnkiDroidApp.kt | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/AnkiDroidApp.kt b/AnkiDroid/src/main/java/com/ichi2/anki/AnkiDroidApp.kt index b47b02a08825..08cb755a34da 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/AnkiDroidApp.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/AnkiDroidApp.kt @@ -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) {