diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/Context.kt index 5f7b9fa93..66fab4107 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/Context.kt @@ -251,7 +251,7 @@ fun Context.getCachedDirectories(callback: (ArrayList) -> Unit) { callback(directories) directories.filter { !File(it.path).exists() }.forEach { - directoryDao.deleteDir(it) + directoryDao.deleteDirPath(it.path) } }.start() }