Do not request data onDismiss
This commit is contained in:
@@ -20,6 +20,6 @@ abstract class AlertDialogFragment : DialogFragment(), DialogInterface.OnClickLi
|
||||
|
||||
override fun onDismiss(dialog: DialogInterface?) {
|
||||
super.onDismiss(dialog)
|
||||
targetFragment?.onActivityResult(targetRequestCode, Activity.RESULT_CANCELED, data)
|
||||
targetFragment?.onActivityResult(targetRequestCode, Activity.RESULT_CANCELED, null)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ class RepeaterManager(private val parent: TetheringFragment) : Manager(), Servic
|
||||
setNeutralButton(R.string.repeater_wps_dialog_pbc, listener)
|
||||
}
|
||||
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 {
|
||||
window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE)
|
||||
|
||||
Reference in New Issue
Block a user