fix #82, properly display MMS images
This commit is contained in:
parent
4a91960875
commit
57e1678f1a
|
@ -67,7 +67,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
|
|||
return
|
||||
} else {
|
||||
val path = applicationContext.getRealPathFromURI(mUri!!) ?: ""
|
||||
if (path != mUri.toString() && path.isNotEmpty()) {
|
||||
if (path != mUri.toString() && path.isNotEmpty() && mUri!!.authority != "mms") {
|
||||
scanPath(mUri!!.path)
|
||||
sendViewPagerIntent(path)
|
||||
finish()
|
||||
|
|
|
@ -55,7 +55,7 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
}
|
||||
|
||||
medium = arguments!!.getSerializable(MEDIUM) as Medium
|
||||
if (medium.path.startsWith("content://")) {
|
||||
if (medium.path.startsWith("content://") && !medium.path.startsWith("content://mms/")) {
|
||||
val originalPath = medium.path
|
||||
medium.path = context!!.getRealPathFromURI(Uri.parse(originalPath)) ?: medium.path
|
||||
|
||||
|
|
Loading…
Reference in New Issue