mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-05 13:57:45 +01:00
use the proper filepath at deleting from viewpager activity
This commit is contained in:
parent
eb1ef6852e
commit
592c80d951
@ -253,7 +253,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||
|
||||
Thread({
|
||||
if (needsPermissions) {
|
||||
val document = getFileDocument(mPath, config.treeUri)
|
||||
val document = getFileDocument(file.absolutePath, config.treeUri)
|
||||
|
||||
// double check we have the uri to the proper file path, not some parent folder
|
||||
val uri = URLDecoder.decode(document.uri.toString(), "UTF-8")
|
||||
|
Loading…
x
Reference in New Issue
Block a user