1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-22 13:24:46 +01:00

fix sharing to Tusky (#1140)

fixes duplicate title when sharing from Feedly or Google News
This commit is contained in:
Bernd 2019-03-23 12:50:24 +01:00 committed by Konrad Pozniak
parent 17082cde30
commit e839a2c9fe

View File

@ -623,7 +623,11 @@ public final class ComposeActivity
String text = intent.getStringExtra(Intent.EXTRA_TEXT);
String shareBody = null;
if(subject != null && text != null){
shareBody = String.format("%s\n%s", subject, text);
if(!subject.equals(text) && !text.contains(subject)){
shareBody = String.format("%s\n%s", subject, text);
}else{
shareBody = text;
}
}else if(text != null){
shareBody = text;
}else if(subject != null){