mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
This commit is contained in:
@ -77,10 +77,12 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
|
|||||||
val uri = mUri.toString()
|
val uri = mUri.toString()
|
||||||
if (uri.startsWith("content:/") && uri.contains("/storage/")) {
|
if (uri.startsWith("content:/") && uri.contains("/storage/")) {
|
||||||
val guessedPath = uri.substring(uri.indexOf("/storage/"))
|
val guessedPath = uri.substring(uri.indexOf("/storage/"))
|
||||||
val extras = intent.extras ?: Bundle()
|
if (File(guessedPath).exists()) {
|
||||||
extras.apply {
|
val extras = intent.extras ?: Bundle()
|
||||||
putString(REAL_FILE_PATH, guessedPath)
|
extras.apply {
|
||||||
intent.putExtras(this)
|
putString(REAL_FILE_PATH, guessedPath)
|
||||||
|
intent.putExtras(this)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user