properly handle real_file_path at opening videos

This commit is contained in:
tibbi 2018-02-19 21:15:05 +01:00
parent 783d73cff4
commit 83100a2330
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
private fun checkIntent(savedInstanceState: Bundle? = null) {
mUri = intent.data ?: return
if (intent.extras?.containsKey(REAL_FILE_PATH) == true) {
mUri = Uri.parse(intent.extras.get(REAL_FILE_PATH) as String)
mUri = Uri.fromFile(File(intent.extras.get(REAL_FILE_PATH) as String))
}
mIsFromGallery = intent.getBooleanExtra(IS_FROM_GALLERY, false)