diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-09-22 14:08:40 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-09-22 14:08:40 +0000 |
commit | 6a038573c357c0bda696f2b4369862648dfa9a17 (patch) | |
tree | 9eb7ca3db74835215f95a2b9f15ae7232e14dfd4 /app/src | |
parent | 41b0b31f2c04aa783620c3a26a6156e5de5691a2 (diff) | |
download | infinity-for-reddit-6a038573c357c0bda696f2b4369862648dfa9a17.tar infinity-for-reddit-6a038573c357c0bda696f2b4369862648dfa9a17.tar.gz infinity-for-reddit-6a038573c357c0bda696f2b4369862648dfa9a17.tar.bz2 infinity-for-reddit-6a038573c357c0bda696f2b4369862648dfa9a17.tar.lz infinity-for-reddit-6a038573c357c0bda696f2b4369862648dfa9a17.tar.xz infinity-for-reddit-6a038573c357c0bda696f2b4369862648dfa9a17.tar.zst infinity-for-reddit-6a038573c357c0bda696f2b4369862648dfa9a17.zip |
Show a toast after comment is sent.
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/CommentActivity.java | 2 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 1 |
2 files changed, 3 insertions, 0 deletions
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); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 84595591..6d7b0153 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -116,6 +116,7 @@ <string name="write_comment_hint">Your interesting thought here</string> <string name="comment_content_required">Where is your interesting thought</string> <string name="sending_comment">Sending</string> + <string name="send_comment_success">Comment sent</string> <string name="send_comment_failed">Could not send this comment</string> <string name="parse_sent_comment_failed">The comment is sent but unable to get the sent comment</string> |