fix displaying some special cases of third party images, like Bluemail attachment

This commit is contained in:
tibbi 2017-10-03 20:29:26 +02:00
parent 647d6de1d3
commit fa7b95e0af
1 changed files with 7 additions and 5 deletions

View File

@ -63,11 +63,13 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
return return
} else { } else {
val path = applicationContext.getRealPathFromURI(mUri) ?: "" val path = applicationContext.getRealPathFromURI(mUri) ?: ""
scanPath(mUri.path) {} if (path != mUri.toString()) {
if (path.isNotEmpty()) { scanPath(mUri.path) {}
sendViewPagerIntent(path) if (path.isNotEmpty()) {
finish() sendViewPagerIntent(path)
return finish()
return
}
} }
} }