mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix issue #81 - Open a link when clicking content
This commit is contained in:
parent
9cc5170a70
commit
f3722688c4
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||||
holder.binding.cardTitle.setText(status.card.title);
|
holder.binding.cardTitle.setText(status.card.title);
|
||||||
holder.binding.cardDescription.setText(status.card.description);
|
holder.binding.cardDescription.setText(status.card.description);
|
||||||
holder.binding.cardUrl.setText(Helper.transformURL(context, status.card.url));
|
holder.binding.cardUrl.setText(Helper.transformURL(context, status.card.url));
|
||||||
holder.binding.cardviewContainer.setOnClickListener(v -> Helper.openBrowser(context, Helper.transformURL(context, status.card.url)));
|
holder.binding.card.setOnClickListener(v -> Helper.openBrowser(context, Helper.transformURL(context, status.card.url)));
|
||||||
holder.binding.card.setVisibility(View.VISIBLE);
|
holder.binding.card.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
holder.binding.card.setVisibility(View.GONE);
|
holder.binding.card.setVisibility(View.GONE);
|
||||||
|
|
Loading…
Reference in a new issue