mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-25 10:28:22 +01:00
Show a toast after comment is sent.
This commit is contained in:
parent
41b0b31f2c
commit
6a038573c3
@ -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);
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user