use the main thread when deleting images from fullscreen view
This commit is contained in:
parent
3a2cdd40c4
commit
c4f49c56c9
|
@ -174,14 +174,10 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||
if (!isShowingPermDialog(file)) {
|
||||
val document = getFileDocument(mPath, config.treeUri)
|
||||
if (document.uri.toString().endsWith(file.absolutePath.getFilenameFromPath()) && !document.isDirectory)
|
||||
Thread({
|
||||
document.delete()
|
||||
}).start()
|
||||
document.delete()
|
||||
}
|
||||
} else {
|
||||
Thread({
|
||||
file.delete()
|
||||
}).start()
|
||||
file.delete()
|
||||
}
|
||||
|
||||
if (deleteFromMediaStore(file)) {
|
||||
|
|
Loading…
Reference in New Issue