mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
NumberPicker: automatically show keyboard
This commit is contained in:
@@ -71,6 +71,8 @@ class NumberPickerFactory
|
|||||||
}
|
}
|
||||||
.create()
|
.create()
|
||||||
|
|
||||||
|
dialog.window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
|
||||||
|
|
||||||
InterfaceUtils.setupEditorAction(picker) { _, actionId, _ ->
|
InterfaceUtils.setupEditorAction(picker) { _, actionId, _ ->
|
||||||
if (actionId == EditorInfo.IME_ACTION_DONE)
|
if (actionId == EditorInfo.IME_ACTION_DONE)
|
||||||
dialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick()
|
dialog.getButton(DialogInterface.BUTTON_POSITIVE).performClick()
|
||||||
|
|||||||
Reference in New Issue
Block a user