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.
This commit is contained in:
acti0 2021-08-27 19:26:32 +02:00 committed by GitHub
parent 556aad0114
commit d9086300f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ public final class ShareUtils {
shareIntent.putExtra(Intent.EXTRA_TEXT, content); shareIntent.putExtra(Intent.EXTRA_TEXT, content);
if (!title.isEmpty()) { if (!title.isEmpty()) {
shareIntent.putExtra(Intent.EXTRA_TITLE, title); 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 /* TODO: add the image of the content to Android share sheet with setClipData after