diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ErrorStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ErrorStatusDisplayItem.java index 33ca9f4c21..2000ee0c2f 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ErrorStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/ErrorStatusDisplayItem.java @@ -4,6 +4,7 @@ import android.os.Build; import android.view.View; import android.view.ViewGroup; +import android.widget.Button; import org.joinmastodon.android.BuildConfig; import org.joinmastodon.android.R; @@ -32,7 +33,9 @@ public static class Holder extends StatusDisplayItem.Holder UiUtils.launchWebBrowser(v.getContext(), item.status.url)); + Button openInBrowserButton=findViewById(R.id.button_open_browser); + openInBrowserButton.setEnabled(item.status.url!=null); + openInBrowserButton.setOnClickListener(v -> UiUtils.launchWebBrowser(v.getContext(), item.status.url)); findViewById(R.id.button_copy_error_details).setOnClickListener(this::copyErrorDetails); }