fix #211, use the note title as the subject at Share
This commit is contained in:
parent
c822645240
commit
c9becb9359
|
@ -566,7 +566,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
|
||||||
val shareTitle = res.getString(R.string.share_via)
|
val shareTitle = res.getString(R.string.share_via)
|
||||||
Intent().apply {
|
Intent().apply {
|
||||||
action = Intent.ACTION_SEND
|
action = Intent.ACTION_SEND
|
||||||
putExtra(Intent.EXTRA_SUBJECT, res.getString(R.string.simple_note))
|
putExtra(Intent.EXTRA_SUBJECT, mCurrentNote.title)
|
||||||
putExtra(Intent.EXTRA_TEXT, text)
|
putExtra(Intent.EXTRA_TEXT, text)
|
||||||
type = "text/plain"
|
type = "text/plain"
|
||||||
startActivity(Intent.createChooser(this, shareTitle))
|
startActivity(Intent.createChooser(this, shareTitle))
|
||||||
|
|
Loading…
Reference in New Issue