Merge branch 'master' into remember_multiple_video_positions

This commit is contained in:
Tibor Kaputa
2019-04-01 12:22:35 +02:00
committed by GitHub
5 changed files with 9 additions and 9 deletions

View File

@ -115,7 +115,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
}
} else {
val path = applicationContext.getRealPathFromURI(mUri!!) ?: ""
if (path != mUri.toString() && path.isNotEmpty() && mUri!!.authority != "mms" && filename.contains('.')) {
if (path != mUri.toString() && path.isNotEmpty() && mUri!!.authority != "mms" && filename.contains('.') && File(path).exists()) {
scanPathRecursively(mUri!!.path)
sendViewPagerIntent(path)
finish()