EditorFragment: show toast on creation too

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-05-27 04:08:23 +02:00
parent 5476fc2228
commit 64ce6cd5a2

View File

@ -169,6 +169,7 @@ public class TunnelEditorFragment extends BaseFragment {
tunnel = newTunnel;
message = getString(R.string.tunnel_create_success, tunnel.getName());
Log.d(TAG, message);
Toast.makeText(getContext(), message, Toast.LENGTH_SHORT).show();
onFinished();
} else {
final String error = ExceptionLoggers.unwrapMessage(throwable);