From 1d900a66fe02b513c8f0760c3e45f2e94927be2a Mon Sep 17 00:00:00 2001 From: sk Date: Thu, 22 Dec 2022 11:13:50 +0100 Subject: [PATCH] try to open link previews in app --- .../android/ui/displayitems/LinkCardStatusDisplayItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/LinkCardStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/LinkCardStatusDisplayItem.java index c79851892..abfe546c1 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/LinkCardStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/LinkCardStatusDisplayItem.java @@ -95,7 +95,7 @@ public class LinkCardStatusDisplayItem extends StatusDisplayItem{ } private void onClick(View v){ - UiUtils.launchWebBrowser(itemView.getContext(), item.status.card.url); + UiUtils.openURL(itemView.getContext(), item.parentFragment.getAccountID(), item.status.card.url); } } }