Commit 4a2ff9b6 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Syntax changes

parent e19d5402
......@@ -313,7 +313,7 @@ class SettingsFragment : PreferenceFragmentCompat() {
helpNetguard.setOnPreferenceClickListener {
AlertDialog.Builder(requireContext(), getPreferences().theme.dialogStyle)
.setTitle("NetGuard")
.setMessage(getString(R.string.dialog_nonvpn_help_netguard, bindAddressAsIP, port.text.toInt(), bindAddressAsIP))
.setMessage(getString(R.string.dialog_nonvpn_help_netguard, bindAddressAsIP, port.text!!.toInt(), bindAddressAsIP))
.setPositiveButton(R.string.all_close, null)
.show()
true
......@@ -323,7 +323,7 @@ class SettingsFragment : PreferenceFragmentCompat() {
}
helpGeneric.setOnPreferenceClickListener {
val portValue = port.text.toInt()
val portValue = port.text!!.toInt()
showInfoTextDialog(
requireContext(),
getString(R.string.preference_category_nonvpnmode_help),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment