Fix crash on fast dismissal
This commit is contained in:
@@ -125,7 +125,7 @@ class RepeaterManager(private val parent: TetheringFragment) : Manager(), Servic
|
|||||||
setNeutralButton(R.string.repeater_wps_dialog_pbc, listener)
|
setNeutralButton(R.string.repeater_wps_dialog_pbc, listener)
|
||||||
}
|
}
|
||||||
override val data: Intent get() = Intent()
|
override val data: Intent get() = Intent()
|
||||||
.putExtra(KEY_PIN, dialog.findViewById<EditText>(android.R.id.edit)!!.text.toString())
|
.putExtra(KEY_PIN, dialog.findViewById<EditText>(android.R.id.edit)?.text.toString())
|
||||||
|
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?) = super.onCreateDialog(savedInstanceState).apply {
|
override fun onCreateDialog(savedInstanceState: Bundle?) = super.onCreateDialog(savedInstanceState).apply {
|
||||||
window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE)
|
window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE)
|
||||||
|
|||||||
Reference in New Issue
Block a user