open the keyboard at showing the edit dialog

This commit is contained in:
tibbi 2016-08-18 21:26:27 +02:00
parent 54f7b7dfa5
commit 3fd432f53f

View File

@ -84,6 +84,7 @@ class RecyclerAdapter(val act: Activity, val launchers: List<AppLauncher>, val i
builder.setNegativeButton(R.string.cancel, null)
val alertDialog = builder.create()
alertDialog.window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE)
alertDialog.show()
alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
val newName = editView.edit_launcher_edittext.text.toString().trim()