diff options
author | Harsh Shandilya <harsh@prjkt.io> | 2018-05-03 23:12:18 +0530 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-05-03 23:49:14 -0500 |
commit | cef761fd0a20884f3b8f530e99fd7ba3490d46b9 (patch) | |
tree | 901c8aba22bb96451e779a8402c7c76e9ce99ad3 /app/src/main/java/com | |
parent | 0b098fb2ccacfcd34b65233da3dc96e6c2f3c99a (diff) |
TunnelEditor: Remove unused parameter
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r-- | app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java | 4 |
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()); |