minor code style update
This commit is contained in:
parent
c17a79a7b4
commit
6a8ff89022
|
@ -30,9 +30,10 @@ class AccessHelper(
|
||||||
val rects = keys.map {
|
val rects = keys.map {
|
||||||
Rect(it.x, it.y, it.x + it.width, it.y + it.height)
|
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 rects.firstOrNull { it.contains(x.toInt(), y.toInt()) }?.let { exactRect ->
|
||||||
} ?: return HOST_ID
|
rects.indexOf(exactRect)
|
||||||
|
} ?: HOST_ID
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue