Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Undo last commit

Cette révision appartient à :
inorichi 2017-11-05 00:47:31 +01:00
Parent 9714a30148
révision d69730a333

Voir le fichier

@ -575,9 +575,9 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>() {
uri = File(uri.toString().substringAfter("file://")).getUriCompat(this) uri = File(uri.toString().substringAfter("file://")).getUriCompat(this)
} }
val intent = Intent(Intent.ACTION_SEND).apply { val intent = Intent(Intent.ACTION_SEND).apply {
setDataAndType(uri, "image/*")
putExtra(Intent.EXTRA_STREAM, uri) putExtra(Intent.EXTRA_STREAM, uri)
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_GRANT_READ_URI_PERMISSION flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_GRANT_READ_URI_PERMISSION
type = "image/*"
} }
startActivity(Intent.createChooser(intent, getString(R.string.action_share))) startActivity(Intent.createChooser(intent, getString(R.string.action_share)))
} }