mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-06-05 21:49:26 +02:00
Use brackets for if/else
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user