Skip to content

Commit c32d85a

Browse files
Use brackets for if/else
1 parent f02ba5f commit c32d85a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,9 +1725,10 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
17251725
private fun MyKeyboard.Key.calcKeyWidth(containerWidth: Int): Int {
17261726
val popupKeyCount = this.popupCharacters!!.length
17271727

1728-
return if (popupKeyCount > containerWidth / this.width)
1728+
return if (popupKeyCount > containerWidth / this.width) {
17291729
containerWidth / popupKeyCount
1730-
else
1730+
} else {
17311731
this.width
1732+
}
17321733
}
17331734
}

0 commit comments

Comments
 (0)