diff options
Diffstat (limited to 'app/src/main/java/com/wireguard/android')
-rw-r--r-- | app/src/main/java/com/wireguard/android/VpnService.java | 8 |
1 files changed, 4 insertions, 4 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(); |