summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-16 00:57:27 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-16 00:57:27 -0500
commite82f1455e4ef6ea9c3ad28ad0270c2441e659bf6 (patch)
treea641c03a8d38a7a6b54fbbd58685d8189909ae10 /app/src/main/java/com/wireguard
parent3c48e2fc1221d9867daee4b4f20474bdaed37a4c (diff)
Config: Rename function to make databinding happy
Diffstat (limited to 'app/src/main/java/com/wireguard')
-rw-r--r--app/src/main/java/com/wireguard/android/VpnService.java8
-rw-r--r--app/src/main/java/com/wireguard/config/Config.java2
2 files changed, 5 insertions, 5 deletions
diff --git a/app/src/main/java/com/wireguard/android/VpnService.java b/app/src/main/java/com/wireguard/android/VpnService.java
index 920dd78e..60ed3c4f 100644
--- a/app/src/main/java/com/wireguard/android/VpnService.java
+++ b/app/src/main/java/com/wireguard/android/VpnService.java
@@ -178,7 +178,7 @@ public class VpnService extends Service {
protected void onPostExecute(final Boolean result) {
if (!result)
return;
- config.setEnabled(false);
+ config.setIsEnabled(false);
}
}
@@ -200,7 +200,7 @@ public class VpnService extends Service {
protected void onPostExecute(final Boolean result) {
if (!result)
return;
- config.setEnabled(true);
+ config.setIsEnabled(true);
}
}
@@ -228,7 +228,7 @@ public class VpnService extends Service {
try {
final Config config = new Config();
config.parseFrom(openFileInput(fileName));
- config.setEnabled(interfaces.contains(configName));
+ config.setIsEnabled(interfaces.contains(configName));
config.setName(configName);
configs.add(config);
} catch (IllegalArgumentException | IOException e) {
@@ -335,7 +335,7 @@ public class VpnService extends Service {
oldConfig.copyFrom(newConfig);
newConfig = oldConfig;
}
- newConfig.setEnabled(false);
+ newConfig.setIsEnabled(false);
configurations.put(newName, newConfig);
if (shouldConnect)
new ConfigEnabler(newConfig).execute();
diff --git a/app/src/main/java/com/wireguard/config/Config.java b/app/src/main/java/com/wireguard/config/Config.java
index 3fe069a1..414b4894 100644
--- a/app/src/main/java/com/wireguard/config/Config.java
+++ b/app/src/main/java/com/wireguard/config/Config.java
@@ -90,7 +90,7 @@ public class Config extends BaseObservable implements Copyable<Config>, Observab
}
}
- public void setEnabled(final boolean isEnabled) {
+ public void setIsEnabled(final boolean isEnabled) {
this.isEnabled = isEnabled;
notifyPropertyChanged(BR.enabled);
}