Skip to content

Commit f362166

Browse files
committed
Remove unnecessary null check in MyKeyboardView
1 parent 3d96687 commit f362166

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,8 +1637,6 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
16371637

16381638
@RequiresApi(Build.VERSION_CODES.R)
16391639
fun clearClipboardViews() {
1640-
if (mToolbarHolder?.autofill_suggestions_holder != null) {
1641-
mToolbarHolder?.autofill_suggestions_holder?.removeAllViews()
1642-
}
1640+
mToolbarHolder?.autofill_suggestions_holder?.removeAllViews()
16431641
}
16441642
}

0 commit comments

Comments
 (0)