use the proper filepath at deleting from viewpager activity

This commit is contained in:
tibbi 2017-02-13 20:49:01 +01:00
parent eb1ef6852e
commit 592c80d951

View file

@ -253,7 +253,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
Thread({ Thread({
if (needsPermissions) { 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 // double check we have the uri to the proper file path, not some parent folder
val uri = URLDecoder.decode(document.uri.toString(), "UTF-8") val uri = URLDecoder.decode(document.uri.toString(), "UTF-8")