mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-02-12 01:40:47 +01:00
Use brackets for if/else
This commit is contained in:
parent
f02ba5fae9
commit
c32d85a18e
@ -1725,9 +1725,10 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||
private fun MyKeyboard.Key.calcKeyWidth(containerWidth: Int): Int {
|
||||
val popupKeyCount = this.popupCharacters!!.length
|
||||
|
||||
return if (popupKeyCount > containerWidth / this.width)
|
||||
return if (popupKeyCount > containerWidth / this.width) {
|
||||
containerWidth / popupKeyCount
|
||||
else
|
||||
} else {
|
||||
this.width
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user