mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2024-11-23 22:09:30 +00:00
Removed warning.
This commit is contained in:
parent
94dc614ce6
commit
758ed7c09c
@ -410,6 +410,10 @@ public class PostsListFragment extends Fragment
|
|||||||
@Override
|
@Override
|
||||||
public void onCommentLikeUpdate(final Comment comment, final boolean is_liking) {
|
public void onCommentLikeUpdate(final Comment comment, final boolean is_liking) {
|
||||||
|
|
||||||
|
//Update information in the comment object
|
||||||
|
comment.setUser_like(is_liking);
|
||||||
|
comment.setLikes(comment.getLikes() + (is_liking ? 1 : -1));
|
||||||
|
|
||||||
//Perform the operation in the background
|
//Perform the operation in the background
|
||||||
new AsyncTask<Void, Void, Boolean>(){
|
new AsyncTask<Void, Void, Boolean>(){
|
||||||
|
|
||||||
@ -425,7 +429,8 @@ public class PostsListFragment extends Fragment
|
|||||||
public void onUpdateCommentContent(final Comment comment) {
|
public void onUpdateCommentContent(final Comment comment) {
|
||||||
|
|
||||||
//Inflate the content of the dialog
|
//Inflate the content of the dialog
|
||||||
View content = getActivity().getLayoutInflater().inflate(R.layout.dialog_edit_comment, null);
|
View content = getActivity().getLayoutInflater().inflate(R.layout.dialog_edit_comment,
|
||||||
|
mListView);
|
||||||
final EditCommentContentView commentInput = content.findViewById(R.id.input_comment_content);
|
final EditCommentContentView commentInput = content.findViewById(R.id.input_comment_content);
|
||||||
commentInput.setText(comment.getContent());
|
commentInput.setText(comment.getContent());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user