Improve challenge sharing

This commit is contained in:
Phillip Thelen 2019-06-14 17:26:34 +02:00
parent 0bb02d49be
commit c94054f512
2 changed files with 2 additions and 1 deletions

View file

@ -942,4 +942,5 @@
<string name="new_task">New Task</string>
<string name="create_task">Create %s</string>
<string name="details">Details</string>
<string name="share_challenge_with">Share Challenge with</string>
</resources>

View file

@ -171,7 +171,7 @@ class ChallengeDetailFragment: BaseMainFragment() {
putExtra(Intent.EXTRA_TEXT, "${BuildConfig.BASE_URL}/challenges/$challengeID")
type = "text/plain"
}
startActivity(shareGuildIntent)
startActivity(Intent.createChooser(shareGuildIntent, context?.getString(R.string.share_challenge_with)))
}
return super.onOptionsItemSelected(item)