mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-06-05 21:49:21 +02:00
make sure the keyboard is shown at the Rename dialog open
This commit is contained in:
@ -23,9 +23,8 @@ class EditDialog(val activity: Activity, val appLauncher: AppLauncher, val callb
|
|||||||
.setPositiveButton(R.string.ok, null)
|
.setPositiveButton(R.string.ok, null)
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.cancel, null)
|
||||||
.create().apply {
|
.create().apply {
|
||||||
|
window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
|
||||||
activity.setupDialogStuff(view, this, R.string.rename)
|
activity.setupDialogStuff(view, this, R.string.rename)
|
||||||
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE)
|
|
||||||
show()
|
|
||||||
getButton(android.app.AlertDialog.BUTTON_POSITIVE).setOnClickListener {
|
getButton(android.app.AlertDialog.BUTTON_POSITIVE).setOnClickListener {
|
||||||
val newName = view.edit_launcher_edittext.value
|
val newName = view.edit_launcher_edittext.value
|
||||||
if (!newName.isEmpty()) {
|
if (!newName.isEmpty()) {
|
||||||
|
Reference in New Issue
Block a user