Fix issue #81 - Open a link when clicking content

This commit is contained in:
Thomas 2022-05-22 16:54:08 +02:00
parent 9cc5170a70
commit f3722688c4
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
holder.binding.cardTitle.setText(status.card.title);
holder.binding.cardDescription.setText(status.card.description);
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);
} else {
holder.binding.card.setVisibility(View.GONE);