From a5a8f751e87ca7abe04c7f843d7e442599da4541 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 13 Dec 2019 11:40:21 +0100 Subject: Version 0.7.13 --- main/src/ui/java/de/blinkt/openvpn/fragments/ImportASConfig.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main/src/ui/java/de/blinkt/openvpn/fragments') diff --git a/main/src/ui/java/de/blinkt/openvpn/fragments/ImportASConfig.kt b/main/src/ui/java/de/blinkt/openvpn/fragments/ImportASConfig.kt index 60c79f87..ee912897 100644 --- a/main/src/ui/java/de/blinkt/openvpn/fragments/ImportASConfig.kt +++ b/main/src/ui/java/de/blinkt/openvpn/fragments/ImportASConfig.kt @@ -266,7 +266,7 @@ class ImportASConfig : DialogFragment() { if (response.code() == 401 && crvMessage.matcher(profile).matches()) { requireContext().runOnUiThread { pleaseWait?.dismiss() - showCRDialog(profile, asProfileUri) + showCRDialog(profile) } } else if (response.isSuccessful) { @@ -342,12 +342,12 @@ class ImportASConfig : DialogFragment() { } } - private fun showCRDialog(response: String, asProfileUri: HttpUrl) { + private fun showCRDialog(response: String) { // This is a dirty hack instead of properly parsing the response val m = crvMessage.matcher(response) // We already know that it matches m.matches() - var challenge = m.group(1) + val challenge = m.group(1) var username = m.group(2) val message = m.group(3) -- cgit v1.2.3