From 6a8ff890222231e3b0f1726bd0bda6e855f8b9f3 Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Sat, 10 Jun 2023 09:15:32 +0200 Subject: [PATCH] minor code style update --- .../com/simplemobiletools/keyboard/helpers/AccessHelper.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 } /**