From d9086300f310dd5a508824244dd9b84b9398bcff Mon Sep 17 00:00:00 2001 From: acti0 <89229009+acti0@users.noreply.github.com> Date: Fri, 27 Aug 2021 19:26:32 +0200 Subject: [PATCH] Re-add sharing of the content name with the "Share" command (#6957) The title of the content is re-added as the EXTRA_SUBJECT of the share intent. --- .../schabi/newpipe/util/external_communication/ShareUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/schabi/newpipe/util/external_communication/ShareUtils.java b/app/src/main/java/org/schabi/newpipe/util/external_communication/ShareUtils.java index e49cd6ea2..22ab6cf2b 100644 --- a/app/src/main/java/org/schabi/newpipe/util/external_communication/ShareUtils.java +++ b/app/src/main/java/org/schabi/newpipe/util/external_communication/ShareUtils.java @@ -248,6 +248,7 @@ public final class ShareUtils { shareIntent.putExtra(Intent.EXTRA_TEXT, content); if (!title.isEmpty()) { shareIntent.putExtra(Intent.EXTRA_TITLE, title); + shareIntent.putExtra(Intent.EXTRA_SUBJECT, title); } /* TODO: add the image of the content to Android share sheet with setClipData after