summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2018-05-03 23:12:18 +0530
committerSamuel Holland <samuel@sholland.org>2018-05-03 23:49:14 -0500
commit37413f2fb43718eea489e2d7f7bb01d7763028f3 (patch)
tree901c8aba22bb96451e779a8402c7c76e9ce99ad3 /app/src/main/java/com
parent59aa3035a8581a687efc7a3b4df5952dffdfecfe (diff)
TunnelEditor: Remove unused parameter
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r--app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java b/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java
index 482ab616..3eb98584 100644
--- a/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java
+++ b/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java
@@ -135,7 +135,7 @@ public class TunnelEditorFragment extends BaseFragment {
} else if (!tunnel.getName().equals(binding.getConfig().getName())) {
Log.d(TAG, "Attempting to rename tunnel to " + binding.getConfig().getName());
tunnel.setName(binding.getConfig().getName())
- .whenComplete((a, b) -> onTunnelRenamed(tunnel, newConfig, a, b));
+ .whenComplete((a, b) -> onTunnelRenamed(tunnel, newConfig, b));
} else {
Log.d(TAG, "Attempting to save config of " + tunnel.getName());
tunnel.setConfig(newConfig)
@@ -183,7 +183,7 @@ public class TunnelEditorFragment extends BaseFragment {
}
private void onTunnelRenamed(final Tunnel renamedTunnel, final Config newConfig,
- final String name, final Throwable throwable) {
+ final Throwable throwable) {
final String message;
if (throwable == null) {
message = getString(R.string.tunnel_rename_success, renamedTunnel.getName());