Use the isNotEmpty method in ClickBox.kt
This commit is contained in:
parent
e7a3fb592e
commit
06c4dea9be
|
@ -48,7 +48,7 @@ class ClickBox(
|
|||
with(buttonsProgressBar) {
|
||||
if ((height != 8 || (supplied < 0)) && ((height != originalHeight) || (supplied > 0))) {
|
||||
height -= supplied.toInt()
|
||||
if (buttons.count() != 0) (height / 8).let {
|
||||
if (buttons.isNotEmpty()) (height / 8).let {
|
||||
if (it > 0) barStage = it
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue