make sure the keyboard is shown at the Rename dialog open

This commit is contained in:
tibbi
2017-11-12 17:17:02 +01:00
parent f92c2052ec
commit f5de06dd43

View File

@ -23,9 +23,8 @@ class EditDialog(val activity: Activity, val appLauncher: AppLauncher, val callb
.setPositiveButton(R.string.ok, null)
.setNegativeButton(R.string.cancel, null)
.create().apply {
window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
activity.setupDialogStuff(view, this, R.string.rename)
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE)
show()
getButton(android.app.AlertDialog.BUTTON_POSITIVE).setOnClickListener {
val newName = view.edit_launcher_edittext.value
if (!newName.isEmpty()) {