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
} else {
val path = applicationContext.getRealPathFromURI(mUri) ?: ""
scanPath(mUri.path) {}
if (path.isNotEmpty()) {
sendViewPagerIntent(path)
finish()
return
if (path != mUri.toString()) {
scanPath(mUri.path) {}
if (path.isNotEmpty()) {
sendViewPagerIntent(path)
finish()
return
}
}
}