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.
pull/7002/head
acti0 2021-08-27 19:26:32 +02:00 zatwierdzone przez GitHub
rodzic 556aad0114
commit d9086300f3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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