chore: 'krby' is also a valid name of a Kirby device
This commit is contained in:
@@ -103,7 +103,8 @@ class MainActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun isKirbyDevice(device: BluetoothDevice): Boolean {
|
private fun isKirbyDevice(device: BluetoothDevice): Boolean {
|
||||||
return (device.name ?: "").lowercase().contains("kirby")
|
val deviceName = (device.name ?: "").lowercase()
|
||||||
|
return deviceName.contains("kirby") || deviceName.contains("krby")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user