Skip to content

Commit

Permalink
Syntax changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch4t4r committed Jan 29, 2022
1 parent e19d540 commit 4a2ff9b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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),
Expand Down

0 comments on commit 4a2ff9b

Please sign in to comment.