include article title when sharing

This commit is contained in:
Andrew Dolgov 2012-01-24 13:55:37 +03:00
parent da564ab804
commit 5aaba5a070
2 changed files with 2 additions and 2 deletions

View File

@ -1178,7 +1178,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
intent.setType("text/plain"); intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_SUBJECT, article.title); intent.putExtra(Intent.EXTRA_SUBJECT, article.title);
intent.putExtra(Intent.EXTRA_TEXT, article.link); intent.putExtra(Intent.EXTRA_TEXT, article.title + " " + article.link);
startActivity(Intent.createChooser(intent, startActivity(Intent.createChooser(intent,
getString(R.string.share_article))); getString(R.string.share_article)));

View File

@ -428,7 +428,7 @@ public class OfflineActivity extends FragmentActivity implements
intent.setType("text/plain"); intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_SUBJECT, title); intent.putExtra(Intent.EXTRA_SUBJECT, title);
intent.putExtra(Intent.EXTRA_TEXT, link); intent.putExtra(Intent.EXTRA_TEXT, title + " " + link);
startActivity(Intent.createChooser(intent, startActivity(Intent.createChooser(intent,
getString(R.id.share_article))); getString(R.id.share_article)));