do the empty path check earlier at PhotoVideoActivity
This commit is contained in:
parent
124d44dfb9
commit
5c929f43ed
1 changed files with 4 additions and 6 deletions
|
@ -65,15 +65,13 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
val path = applicationContext.getRealPathFromURI(mUri!!) ?: ""
|
val path = applicationContext.getRealPathFromURI(mUri!!) ?: ""
|
||||||
if (path != mUri.toString()) {
|
if (path != mUri.toString() && path.isNotEmpty()) {
|
||||||
scanPath(mUri!!.path) {}
|
scanPath(mUri!!.path) {}
|
||||||
if (path.isNotEmpty()) {
|
|
||||||
sendViewPagerIntent(path)
|
sendViewPagerIntent(path)
|
||||||
finish()
|
finish()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
showSystemUI()
|
showSystemUI()
|
||||||
val bundle = Bundle()
|
val bundle = Bundle()
|
||||||
|
|
Loading…
Reference in a new issue