diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2018-05-03 23:05:51 +0530 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-05-05 10:08:14 -0500 |
commit | fd571c53ce20897969e957158097c2f16206d73d (patch) | |
tree | dbf11c090ad654edc074bebbe2ba24a06a249d9f /app/src/main/java/com/wireguard/android | |
parent | 5ed36d734637f20a29b52f3809b6e9dea78463d6 (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 <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java/com/wireguard/android')
-rw-r--r-- | app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java | 2 |
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(); |