mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-08-18 02:51:58 +00:00
Don't show the expand button when there is no reply in CommentsRecyclerViewAdapterNew.
This commit is contained in:
@ -579,7 +579,7 @@ public class CommentsRecyclerViewAdapterNew extends ListAdapter<Comment, Recycle
|
||||
if (((CommentBaseViewHolder) holder).replyButton != null) {
|
||||
((CommentBaseViewHolder) holder).replyButton.setVisibility(View.VISIBLE);
|
||||
}
|
||||
if (((CommentBaseViewHolder) holder).expandButton != null) {
|
||||
if (((CommentBaseViewHolder) holder).expandButton != null && comment.hasReply()) {
|
||||
((CommentBaseViewHolder) holder).expandButton.setVisibility(View.VISIBLE);
|
||||
}
|
||||
} else if (bottomToolbarWidth > 350) {
|
||||
@ -589,7 +589,7 @@ public class CommentsRecyclerViewAdapterNew extends ListAdapter<Comment, Recycle
|
||||
if (((CommentBaseViewHolder) holder).replyButton != null) {
|
||||
((CommentBaseViewHolder) holder).replyButton.setVisibility(View.GONE);
|
||||
}
|
||||
if (((CommentBaseViewHolder) holder).expandButton != null) {
|
||||
if (((CommentBaseViewHolder) holder).expandButton != null && comment.hasReply()) {
|
||||
((CommentBaseViewHolder) holder).expandButton.setVisibility(View.VISIBLE);
|
||||
}
|
||||
} else if (bottomToolbarWidth > 300) {
|
||||
@ -599,7 +599,7 @@ public class CommentsRecyclerViewAdapterNew extends ListAdapter<Comment, Recycle
|
||||
if (((CommentBaseViewHolder) holder).replyButton != null) {
|
||||
((CommentBaseViewHolder) holder).replyButton.setVisibility(View.GONE);
|
||||
}
|
||||
if (((CommentBaseViewHolder) holder).expandButton != null) {
|
||||
if (((CommentBaseViewHolder) holder).expandButton != null && comment.hasReply()) {
|
||||
((CommentBaseViewHolder) holder).expandButton.setVisibility(View.VISIBLE);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user