Commit 32ba14cb authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Don't start the service when it is not prepared but the info dialog has been shown before

parent 6c4bb4fc
......@@ -178,7 +178,7 @@ class MainFragment : Fragment() {
getPreferences().vpnInformationShown = true
} else {
if (getPreferences().vpnInformationShown) {
requireContext().startService(Intent(requireContext(), DnsVpnService::class.java))
startActivityForResult(prepare, vpnRequestCode)
} else {
showInfoTextDialog(requireContext(),
getString(R.string.dialog_vpninformation_title),
......
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