summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard
diff options
context:
space:
mode:
authorHarsh Shandilya <harsh@prjkt.io>2018-05-03 23:05:51 +0530
committerSamuel Holland <samuel@sholland.org>2018-05-05 10:08:14 -0500
commit2602e1e87726f5a21cd61f5d78f4c7946b723ac5 (patch)
treedbf11c090ad654edc074bebbe2ba24a06a249d9f /app/src/main/java/com/wireguard
parent247566b07465887d7dbf8bf8edb3d0991505debb (diff)
TunnelEditor: Add toast messages to success events
Letting the user know that the operation went successfully via visual cues is a nice UX touch. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
Diffstat (limited to 'app/src/main/java/com/wireguard')
-rw-r--r--app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java2
1 files changed, 2 insertions, 0 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 3eb98584..91d5131b 100644
--- a/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java
+++ b/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java
@@ -20,6 +20,7 @@ import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
+import android.widget.Toast;
import com.wireguard.android.Application;
import com.wireguard.android.R;
@@ -51,6 +52,7 @@ public class TunnelEditorFragment extends BaseFragment {
if (throwable == null) {
message = getString(R.string.config_save_success, savedTunnel.getName());
Log.d(TAG, message);
+ Toast.makeText(getContext(), message, Toast.LENGTH_SHORT).show();
onFinished();
} else {
final String error = ExceptionLoggers.unwrap(throwable).getMessage();