Version 23.8Beta Input número pero acepta text

This commit is contained in:
Sergio De la torre 2023-03-07 12:48:02 +01:00
parent 0deda2f72e
commit c606eb6d71
1 changed files with 1 additions and 0 deletions

View File

@ -1634,6 +1634,7 @@ class CollectionFragment(
} catch (e: Exception) { } catch (e: Exception) {
} }
try { try {
customDialogList.getEditTextTwo().setRawInputType(InputType.TYPE_CLASS_NUMBER)
customDialogList.getEditTextTwo().setOnEditorActionListener { v, actionId, event -> customDialogList.getEditTextTwo().setOnEditorActionListener { v, actionId, event ->
if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_DONE || actionId == 0 || actionId == 5) { if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_DONE || actionId == 0 || actionId == 5) {