summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2019-08-23 18:16:07 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2019-08-29 11:13:17 +0000
commitdb82563622aaf571a3750a3e2baf7d80ad2f432e (patch)
treef9552f78b84f0c4dea4550e133d86199469f1b14
parentffcb2813932ecdd647fbc080c4ef0694e6bc68bc (diff)
downloadmullvadvpn-db82563622aaf571a3750a3e2baf7d80ad2f432e.tar.xz
mullvadvpn-db82563622aaf571a3750a3e2baf7d80ad2f432e.zip
Remove semicolons
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/WireguardKeyFragment.kt26
1 files changed, 13 insertions, 13 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/WireguardKeyFragment.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/WireguardKeyFragment.kt
index ee4bddc871..9dd6e304e4 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/WireguardKeyFragment.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/WireguardKeyFragment.kt
@@ -25,9 +25,9 @@ import net.mullvad.mullvadvpn.model.KeygenEvent
import net.mullvad.mullvadvpn.model.TunnelState
class WireguardKeyFragment : Fragment() {
- private var keyState: KeygenEvent? = null;
- private var currentJob: Job? = null;
- private var updateViewsJob: Job? = null;
+ private var keyState: KeygenEvent? = null
+ private var currentJob: Job? = null
+ private var updateViewsJob: Job? = null
private lateinit var parentActivity: MainActivity
private lateinit var connectionProxy: ConnectionProxy
private lateinit var keyStatusListener: KeyStatusListener
@@ -134,7 +134,7 @@ class WireguardKeyFragment : Fragment() {
private fun setGenerateButton() {
if (generatingKey) {
showActionSpinner()
- return;
+ return
}
actionSpinner.visibility = View.GONE
actionButton.visibility = View.VISIBLE
@@ -147,7 +147,7 @@ class WireguardKeyFragment : Fragment() {
private fun setValidateButton() {
if (validatingKey) {
showActionSpinner()
- return;
+ return
}
actionSpinner.visibility = View.GONE
actionButton.visibility = View.VISIBLE
@@ -175,24 +175,24 @@ class WireguardKeyFragment : Fragment() {
private fun onGenerateKeyPress() {
currentJob?.cancel()
- generatingKey = true;
- validatingKey = false;
+ generatingKey = true
+ validatingKey = false
updateViews()
currentJob = GlobalScope.launch(Dispatchers.Main) {
keyStatusListener.generateKey().join()
- generatingKey = false;
+ generatingKey = false
updateViews()
}
}
private fun onValidateKeyPress() {
currentJob?.cancel()
- validatingKey = true;
- generatingKey = false;
+ validatingKey = true
+ generatingKey = false
updateViews()
currentJob = GlobalScope.launch(Dispatchers.Main) {
keyStatusListener.verifyKey().join()
- validatingKey = false;
+ validatingKey = false
when (val state = keyStatusListener.keyStatus) {
is KeygenEvent.NewKey -> {
if (state.verified == null) {
@@ -209,8 +209,8 @@ class WireguardKeyFragment : Fragment() {
keyStatusListener.onKeyStatusChange = null
currentJob?.cancel()
updateViewsJob?.cancel()
- validatingKey = false;
- generatingKey = false;
+ validatingKey = false
+ generatingKey = false
super.onPause()
}