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

View file

@ -63,6 +63,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
return return
} else { } else {
val path = applicationContext.getRealPathFromURI(mUri) ?: "" val path = applicationContext.getRealPathFromURI(mUri) ?: ""
if (path != mUri.toString()) {
scanPath(mUri.path) {} scanPath(mUri.path) {}
if (path.isNotEmpty()) { if (path.isNotEmpty()) {
sendViewPagerIntent(path) sendViewPagerIntent(path)
@ -70,6 +71,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
return return
} }
} }
}
showSystemUI() showSystemUI()
val bundle = Bundle() val bundle = Bundle()