Fixes build error in CameraVideoPicker

This commit is contained in:
ericdecanini 2022-04-14 11:46:59 +02:00
parent da843443ef
commit b76ec78c5d
1 changed files with 3 additions and 3 deletions

View File

@ -23,8 +23,8 @@ import android.provider.MediaStore
import androidx.activity.result.ActivityResultLauncher
import androidx.core.content.FileProvider
import im.vector.lib.multipicker.entity.MultiPickerVideoType
import im.vector.lib.multipicker.utils.MediaFileUtils.MediaType.VIDEO
import im.vector.lib.multipicker.utils.MediaFileUtils.createTemporaryMediaFile
import im.vector.lib.multipicker.utils.MediaType
import im.vector.lib.multipicker.utils.createTemporaryMediaFile
import im.vector.lib.multipicker.utils.toMultiPickerVideoType
/**
@ -61,7 +61,7 @@ class CameraVideoPicker {
companion object {
fun createVideoUri(context: Context): Uri {
val file = createTemporaryMediaFile(context, VIDEO)
val file = createTemporaryMediaFile(context, MediaType.VIDEO)
val authority = context.packageName + ".multipicker.fileprovider"
return FileProvider.getUriForFile(context, authority, file)
}