mirror of
				https://github.com/SimpleMobileTools/Simple-Dialer.git
				synced 2025-06-05 21:49:23 +02:00 
			
		
		
		
	Move extension to proper file
This commit is contained in:
		| @@ -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 |  | ||||||
| } |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user