From 4d753fc562864a44a1ee30fbaad785311b5e790a Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sun, 14 Jun 2020 15:19:56 +0800 Subject: Add a rounded background to thumbnail in compact layout. Fix subreddits and users not clickable in sidebar. --- .../Adapter/PostRecyclerViewAdapter.java | 26 ++++++++++++++-------- .../infinityforreddit/ParseSubredditData.java | 3 ++- 2 files changed, 19 insertions(+), 10 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java index 98355c69..2b65b05a 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java @@ -898,8 +898,8 @@ public class PostRecyclerViewAdapter extends PagedListAdapter { + ((PostCompactViewHolder) holder).noPreviewLinkImageFrameLayout.setVisibility(View.VISIBLE); + ((PostCompactViewHolder) holder).noPreviewLinkImageFrameLayout.setOnClickListener(view -> { Intent intent = new Intent(mActivity, LinkResolverActivity.class); Uri uri = Uri.parse(post.getUrl()); if (uri.getScheme() == null && uri.getHost() == null) { @@ -1385,7 +1385,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter