mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
NumberPicker: automatically show keyboard
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user