Skip to content

Commit

Permalink
NumberPicker: automatically show keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
iSoron committed Dec 8, 2018
1 parent a839631 commit 3581173
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3581173

Please sign in to comment.