Merge pull request #66 from PhotonQyv/WikimediaSharingFix

Added a fix for Wikipedia (& other apps perhaps)...
This commit is contained in:
Thomas 2017-11-29 08:14:34 +01:00 committed by GitHub
commit 380e6f902f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -391,8 +391,8 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
final String image = intent.getStringExtra("image");
String title = intent.getStringExtra("title");
String description = intent.getStringExtra("description");
if( description != null ){
if( title != null)
if( description != null && description.length() > 0){
if( title != null && title.length() > 0)
sharedContent = title + "\n\n" + description + "\n\n" + sharedContentIni;
else
sharedContent = description + "\n\n" + sharedContentIni;