From 83100a233091ba74d3f417fe4e6981801e879caf Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 19 Feb 2018 21:15:05 +0100 Subject: [PATCH] properly handle real_file_path at opening videos --- .../simplemobiletools/gallery/activities/PhotoVideoActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt index 1eee71390..1a67e6333 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt @@ -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)