From 28edb71fd61bf65677e039130011c6fd332a9dd1 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sun, 31 Dec 2023 11:08:30 +0100 Subject: [PATCH] Share AntennaPod subscribe link instead of RSS url (#6835) Apparently users are confused by RSS links. --- .../de/danoeh/antennapod/core/util/ShareUtils.java | 13 +++++++------ ui/i18n/src/main/res/values/strings.xml | 1 - 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/ShareUtils.java b/core/src/main/java/de/danoeh/antennapod/core/util/ShareUtils.java index 13f2af762..630507487 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/ShareUtils.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/ShareUtils.java @@ -10,6 +10,7 @@ import androidx.core.app.ShareCompat; import androidx.core.content.FileProvider; import java.io.File; +import java.net.URLEncoder; import de.danoeh.antennapod.core.R; import de.danoeh.antennapod.model.feed.Feed; @@ -33,12 +34,12 @@ public class ShareUtils { } public static void shareFeedLink(Context context, Feed feed) { - String text = feed.getTitle(); - if (feed.getLink() != null) { - text += "\n" + feed.getLink(); - } - text += "\n\n" + context.getResources().getString(R.string.share_rss_address_label) - + " " + feed.getDownload_url(); + String text = feed.getTitle() + + "\n\n" + + "https://antennapod.org/deeplink/subscribe/?url=" + + URLEncoder.encode(feed.getDownload_url()) + + "&title=" + + URLEncoder.encode(feed.getTitle()); shareLink(context, text); } diff --git a/ui/i18n/src/main/res/values/strings.xml b/ui/i18n/src/main/res/values/strings.xml index 9b5ddd07e..4e61e37f4 100644 --- a/ui/i18n/src/main/res/values/strings.xml +++ b/ui/i18n/src/main/res/values/strings.xml @@ -185,7 +185,6 @@ Remove podcast Share Share file - RSS address: Please confirm that you want to delete the podcast \"%1$s\", ALL its episodes (including downloaded episodes), and its statistics. Please confirm that you want to remove the selected podcasts, ALL their episodes (including downloaded episodes), and its statistics. Please confirm that you want to remove the podcast \"%1$s\" and its statistics. The files in the local source folder will not be deleted.