Skip setting button after destroyed
This commit is contained in:
@@ -168,7 +168,7 @@ class WifiApDialogFragment : AlertDialogFragment<WifiApDialogFragment.Arg, WifiA
|
|||||||
dialogView.password_wrapper.error = if (passwordValid) null else {
|
dialogView.password_wrapper.error = if (passwordValid) null else {
|
||||||
requireContext().getString(R.string.credentials_password_too_short)
|
requireContext().getString(R.string.credentials_password_too_short)
|
||||||
}
|
}
|
||||||
(dialog as AlertDialog).getButton(DialogInterface.BUTTON_POSITIVE).isEnabled = ssidValid && passwordValid
|
(dialog as? AlertDialog)?.getButton(DialogInterface.BUTTON_POSITIVE)?.isEnabled = ssidValid && passwordValid
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) { }
|
override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) { }
|
||||||
|
|||||||
Reference in New Issue
Block a user