NumberPicker: automatically show keyboard

This commit is contained in:
2018-12-08 08:30:23 -06:00
parent a839631aae
commit 3581173193

View File

@@ -71,6 +71,8 @@ class NumberPickerFactory
}
.create()
dialog.window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
InterfaceUtils.setupEditorAction(picker) { _, actionId, _ ->
if (actionId == EditorInfo.IME_ACTION_DONE)
dialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick()