Compile with SDK 37
This commit is contained in:
committed by
Benoit Marty
parent
405fd3ca0d
commit
e54d93cd50
+1
@@ -72,6 +72,7 @@ fun View.showKeyboard(andRequestFocus: Boolean = false) {
|
||||
windowInsetsController?.show(WindowInsets.Type.ime())
|
||||
} else {
|
||||
val imm = context?.getSystemService<InputMethodManager>()
|
||||
@Suppress("DEPRECATION")
|
||||
imm?.showSoftInput(this, InputMethodManager.SHOW_IMPLICIT)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user