diff options
author | Alex Ning <chineseperson5@gmail.com> | 2018-09-03 08:17:51 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2018-09-03 08:17:51 +0000 |
commit | 5c51450a8ebd9a1bbcf39377d639dca0c4994987 (patch) | |
tree | 4dffb9b366bb2d0e1b0e3f57b760f94e15d489f9 | |
parent | 06a692130ca321796df0429b6eb54e72ed694424 (diff) | |
download | infinity-for-reddit-5c51450a8ebd9a1bbcf39377d639dca0c4994987.tar infinity-for-reddit-5c51450a8ebd9a1bbcf39377d639dca0c4994987.tar.gz infinity-for-reddit-5c51450a8ebd9a1bbcf39377d639dca0c4994987.tar.bz2 infinity-for-reddit-5c51450a8ebd9a1bbcf39377d639dca0c4994987.tar.lz infinity-for-reddit-5c51450a8ebd9a1bbcf39377d639dca0c4994987.tar.xz infinity-for-reddit-5c51450a8ebd9a1bbcf39377d639dca0c4994987.tar.zst infinity-for-reddit-5c51450a8ebd9a1bbcf39377d639dca0c4994987.zip |
Fixed a bug that the expand less button and the expand more button is not shown at the right time.
Diffstat (limited to '')
-rw-r--r-- | .idea/caches/build_file_checksums.ser | bin | 533 -> 533 bytes | |||
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/CommentMultiLevelRecyclerViewAdapter.java | 4 |
2 files changed, 3 insertions, 1 deletions
diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser Binary files differindex 7b4aa4ac..c55c565f 100644 --- a/.idea/caches/build_file_checksums.ser +++ b/.idea/caches/build_file_checksums.ser diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentMultiLevelRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentMultiLevelRecyclerViewAdapter.java index ce241a4c..1e46b62f 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentMultiLevelRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentMultiLevelRecyclerViewAdapter.java @@ -67,8 +67,8 @@ class CommentMultiLevelRecyclerViewAdapter extends MultiLevelAdapter { @Override public void onClick(View view) { if(commentItem.hasChildren() && commentItem.getChildren().size() > 0) { - setExpandButton(((CommentViewHolder) holder).expandButton, commentItem.isExpanded()); mMultiLevelRecyclerView.toggleItemsGroup(holder.getAdapterPosition()); + setExpandButton(((CommentViewHolder) holder).expandButton, commentItem.isExpanded()); } else { ((CommentViewHolder) holder).loadMoreCommentsProgressBar.setVisibility(View.VISIBLE); FetchComment.fetchComment(subredditNamePrefixed, article, commentItem.getId(), @@ -83,6 +83,8 @@ class CommentMultiLevelRecyclerViewAdapter extends MultiLevelAdapter { ((CommentViewHolder) holder).loadMoreCommentsProgressBar .setVisibility(View.GONE); mMultiLevelRecyclerView.toggleItemsGroup(holder.getAdapterPosition()); + ((CommentViewHolder) holder).expandButton + .setImageResource(R.drawable.ic_expand_less_black_20dp); } @Override |