This commit is contained in:
Bnyro 2022-06-09 14:24:26 +02:00
parent 4dc6e1024b
commit 45f6a3319c

View File

@ -40,7 +40,9 @@ class ShareDialog(private val videoId: String) : DialogFragment() {
intent.action = Intent.ACTION_SEND
intent.putExtra(Intent.EXTRA_TEXT, url)
intent.type = "text/plain"
context?.startActivity(Intent.createChooser(intent, context?.getString(R.string.shareTo)))
context?.startActivity(
Intent.createChooser(intent, context?.getString(R.string.shareTo))
)
}
.show()
} ?: throw IllegalStateException("Activity cannot be null")