mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-03-19 12:50:14 +01:00
Move extension to proper file
This commit is contained in:
parent
28d6687c6b
commit
46cc66466b
@ -24,3 +24,7 @@ private fun getCharKeyCode(char: Char) = when (char) {
|
|||||||
'+' -> KeyEvent.KEYCODE_PLUS
|
'+' -> KeyEvent.KEYCODE_PLUS
|
||||||
else -> KeyEvent.KEYCODE_POUND
|
else -> KeyEvent.KEYCODE_POUND
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun EditText.disableKeyboard() {
|
||||||
|
showSoftInputOnFocus = false
|
||||||
|
}
|
||||||
|
@ -2,11 +2,6 @@ package com.simplemobiletools.dialer.extensions
|
|||||||
|
|
||||||
import android.graphics.Rect
|
import android.graphics.Rect
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.widget.EditText
|
|
||||||
|
|
||||||
val View.boundingBox
|
val View.boundingBox
|
||||||
get() = Rect().also { getGlobalVisibleRect(it) }
|
get() = Rect().also { getGlobalVisibleRect(it) }
|
||||||
|
|
||||||
fun EditText.disableKeyboard() {
|
|
||||||
showSoftInputOnFocus = false
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user