From 9918649d7cae38329bbd87a902bd7bfb087d1edd Mon Sep 17 00:00:00 2001 From: FineFindus Date: Sun, 4 Aug 2024 15:56:32 +0200 Subject: [PATCH 1/2] feat(Timeline/TrendingLink): provide WebURL Since the Web version now has a user-visible timeline, we can provide a URL to that. --- .../discover/DiscoverTrendingLinkTimelineFragment.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/DiscoverTrendingLinkTimelineFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/DiscoverTrendingLinkTimelineFragment.java index 53212feea5..20fe727fad 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/DiscoverTrendingLinkTimelineFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/discover/DiscoverTrendingLinkTimelineFragment.java @@ -131,8 +131,7 @@ protected FilterContext getFilterContext() { @Override public Uri getWebUri(Uri.Builder base) { - //TODO: add URL link once web version implements a UI - return base.path("/explore/links").build(); + return base.path("/links").appendPath(trendingLink.url).build(); } @Override From 89ef482e2e897ba7048f78b7981d44d374c72049 Mon Sep 17 00:00:00 2001 From: FineFindus Date: Sun, 4 Aug 2024 15:58:35 +0200 Subject: [PATCH 2/2] feat(Timeline/TrendingLink): use open icon for open action The previous icon made it hard to recognize what the action was supposed to do. Additionally, the new one also indicate that it will take the user to an external website. --- .../drawable/ic_fluent_document_one_page_24_filled.xml | 9 --------- mastodon/src/main/res/menu/trending_links_timeline.xml | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 mastodon/src/main/res/drawable/ic_fluent_document_one_page_24_filled.xml diff --git a/mastodon/src/main/res/drawable/ic_fluent_document_one_page_24_filled.xml b/mastodon/src/main/res/drawable/ic_fluent_document_one_page_24_filled.xml deleted file mode 100644 index be2cf77c6a..0000000000 --- a/mastodon/src/main/res/drawable/ic_fluent_document_one_page_24_filled.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/mastodon/src/main/res/menu/trending_links_timeline.xml b/mastodon/src/main/res/menu/trending_links_timeline.xml index 5a10a8e9cb..934fa1e3c2 100644 --- a/mastodon/src/main/res/menu/trending_links_timeline.xml +++ b/mastodon/src/main/res/menu/trending_links_timeline.xml @@ -2,7 +2,7 @@ \ No newline at end of file