From 6a038573c357c0bda696f2b4369862648dfa9a17 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sun, 22 Sep 2019 22:08:40 +0800 Subject: Show a toast after comment is sent. --- .../main/java/ml/docilealligator/infinityforreddit/CommentActivity.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src/main/java/ml/docilealligator') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentActivity.java index 46f1c850..dd914ea3 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentActivity.java @@ -15,6 +15,7 @@ import android.view.Window; import android.view.inputmethod.InputMethodManager; import android.widget.EditText; import android.widget.TextView; +import android.widget.Toast; import androidx.annotation.NonNull; import androidx.annotation.Nullable; @@ -216,6 +217,7 @@ public class CommentActivity extends AppCompatActivity { new SendComment.SendCommentListener() { @Override public void sendCommentSuccess(CommentData commentData) { + Toast.makeText(CommentActivity.this, R.string.send_comment_success, Toast.LENGTH_SHORT).show(); Intent returnIntent = new Intent(); returnIntent.putExtra(EXTRA_COMMENT_DATA_KEY, commentData); returnIntent.putExtra(EXTRA_PARENT_FULLNAME_KEY, parentFullname); -- cgit v1.2.3