forked from upstream-mirrors/quik
#1076 - Video playback support
This commit is contained in:
@@ -97,19 +97,12 @@ class Navigator @Inject constructor(private val context: Context, private val no
|
||||
startActivity(intent)
|
||||
}
|
||||
|
||||
fun showImage(partId: Long) {
|
||||
fun showMedia(partId: Long) {
|
||||
val intent = Intent(context, GalleryActivity::class.java)
|
||||
intent.putExtra("partId", partId)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user