diff --git a/mastodon/src/main/java/org/joinmastodon/android/ExternalShareActivity.java b/mastodon/src/main/java/org/joinmastodon/android/ExternalShareActivity.java index c289bde53..263af871c 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ExternalShareActivity.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ExternalShareActivity.java @@ -53,7 +53,10 @@ public class ExternalShareActivity extends FragmentStackActivity{ Intent intent=getIntent(); StringBuilder builder=new StringBuilder(); String subject = ""; - if (intent.hasExtra(Intent.EXTRA_SUBJECT)) builder.append(subject = intent.getStringExtra(Intent.EXTRA_SUBJECT)).append("\n\n"); + if (intent.hasExtra(Intent.EXTRA_SUBJECT)) { + subject = intent.getStringExtra(Intent.EXTRA_SUBJECT); + if (!subject.isBlank()) builder.append(subject).append("\n\n"); + } if (intent.hasExtra(Intent.EXTRA_TEXT)) builder.append(intent.getStringExtra(Intent.EXTRA_TEXT)).append("\n"); String text=builder.toString(); List mediaUris;