From f4515514c10d2f653a638bcdef6bc7ba1ac494b0 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 10 Sep 2019 09:23:49 +0800 Subject: Fixed clicking username in comments in user's comment section opening current accout profile. Fixed downvote state would not retain after orientation change. Reverse the color of upvote and downvote buttons. --- .../infinityforreddit/CommentAndPostRecyclerViewAdapter.java | 4 ++-- .../infinityforreddit/CommentsListingRecyclerViewAdapter.java | 6 +++--- app/src/main/res/values/colors.xml | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java index d0893b14..c20177b9 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java @@ -544,12 +544,12 @@ class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter { Intent intent = new Intent(mContext, ViewUserDetailActivity.class); - intent.putExtra(ViewUserDetailActivity.EXTRA_USER_NAME_KEY, comment.getAuthor()); + intent.putExtra(ViewUserDetailActivity.EXTRA_USER_NAME_KEY, comment.getLinkAuthor()); mContext.startActivity(intent); }); } else { @@ -137,12 +137,12 @@ class CommentsListingRecyclerViewAdapter extends PagedListAdapter@color/roundedBottomSheetPrimaryBackground - #007DDE + #E91E63 - #E91E63 + #007DDE #F0F0F0 -- cgit v1.2.3