include article title when sharing
This commit is contained in:
parent
da564ab804
commit
5aaba5a070
@ -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)));
|
||||||
|
@ -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)));
|
||||||
|
Loading…
Reference in New Issue
Block a user