From 592c80d951387e4628330cc1a2fd194c221570b2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 13 Feb 2017 20:49:01 +0100 Subject: [PATCH] use the proper filepath at deleting from viewpager activity --- .../simplemobiletools/gallery/activities/ViewPagerActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index a802e0da9..0e21e0b2b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -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")