#1012 - Show video attachments

This commit is contained in:
Moez Bhatti
2018-04-20 16:51:02 -04:00
parent 510a9d23b5
commit dcbae53112
17 changed files with 163 additions and 35 deletions
@@ -119,6 +119,13 @@ class Navigator @Inject constructor(private val context: Context, private val no
startActivity(intent)
}
fun showVideo(uri: Uri, type: String) {
val intent = Intent(Intent.ACTION_VIEW, uri)
.setDataAndType(uri, type)
startActivityExternal(intent)
}
/**
* Shows the attachment full-screen
* The transitionName for the view should be the id of the image being displayed