From b9733e69e9fe58a972401d58cfdb344c7abf8328 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 29 Oct 2019 13:52:30 +0800 Subject: Placing vote buttons on the right for comments is now available. --- .../Adapter/CommentAndPostRecyclerViewAdapter.java | 27 +++++++++++++++++- .../CommentsListingRecyclerViewAdapter.java | 32 ++++++++++++++++++++++ .../Adapter/PostRecyclerViewAdapter.java | 2 +- .../Fragment/CommentsListingFragment.java | 3 +- .../ml/docilealligator/infinityforreddit/Post.java | 4 +-- 5 files changed, 63 insertions(+), 5 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java index 169a5cee..97c7fb98 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java @@ -510,7 +510,7 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter mCommentViewModel.retryLoadingMore()); + voteButtonsOnTheRight, () -> mCommentViewModel.retryLoadingMore()); String username = getArguments().getString(EXTRA_USERNAME); String sort = mSharedPreferences.getString(SharedPreferencesUtils.SORT_TYPE_USER_COMMENT, SortType.Type.NEW.value); diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Post.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Post.java index 1f2c3681..47f4a6a3 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Post.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Post.java @@ -323,11 +323,11 @@ public class Post implements Parcelable { this.previewHeight = previewHeight; } - public int getnComments() { + public int getNComments() { return nComments; } - public void setnComments(int nComments) { + public void setNComments(int nComments) { this.nComments = nComments; } -- cgit v1.2.3