From 75734d0e910e59a03287fb58b045ede3dd52d858 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Wed, 10 Jul 2019 06:53:21 +0200 Subject: [PATCH] fix card view outline being off a few pixels (#1375) --- .../keylesspalace/tusky/adapter/StatusDetailedViewHolder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/StatusDetailedViewHolder.java b/app/src/main/java/com/keylesspalace/tusky/adapter/StatusDetailedViewHolder.java index 3642ce37..9d3899a9 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/StatusDetailedViewHolder.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/StatusDetailedViewHolder.java @@ -56,6 +56,8 @@ class StatusDetailedViewHolder extends StatusBaseViewHolder { cardDescription = view.findViewById(R.id.card_description); cardUrl = view.findViewById(R.id.card_link); infoDivider = view.findViewById(R.id.status_info_divider); + + cardView.setClipToOutline(true); } @Override @@ -194,7 +196,6 @@ class StatusDetailedViewHolder extends StatusBaseViewHolder { int radius = cardImage.getContext().getResources() .getDimensionPixelSize(R.dimen.card_radius); - cardView.setClipToOutline(true); Glide.with(cardImage) .load(card.getImage()) .transform(new CenterCrop(), new RoundedCornersTransformation(radius, 0, cornertype))