Move extension to proper file

This commit is contained in:
Naveen 2022-09-19 00:16:41 +05:30
parent 28d6687c6b
commit 46cc66466b
2 changed files with 4 additions and 5 deletions

View File

@ -24,3 +24,7 @@ private fun getCharKeyCode(char: Char) = when (char) {
'+' -> KeyEvent.KEYCODE_PLUS
else -> KeyEvent.KEYCODE_POUND
}
fun EditText.disableKeyboard() {
showSoftInputOnFocus = false
}

View File

@ -2,11 +2,6 @@ package com.simplemobiletools.dialer.extensions
import android.graphics.Rect
import android.view.View
import android.widget.EditText
val View.boundingBox
get() = Rect().also { getGlobalVisibleRect(it) }
fun EditText.disableKeyboard() {
showSoftInputOnFocus = false
}