diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/AccessHelper.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/AccessHelper.kt index 120432c..dd10066 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/AccessHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/AccessHelper.kt @@ -30,9 +30,10 @@ class AccessHelper( val rects = keys.map { Rect(it.x, it.y, it.x + it.width, it.y + it.height) } - rects.firstOrNull { it.contains(x.toInt(), y.toInt()) }?.let { exactRect -> - return rects.indexOf(exactRect) - } ?: return HOST_ID + + return rects.firstOrNull { it.contains(x.toInt(), y.toInt()) }?.let { exactRect -> + rects.indexOf(exactRect) + } ?: HOST_ID } /**