mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-12-01 16:58:00 +01:00
do not rescan .nomedia file at hiding a folder, it can delete the file
This commit is contained in:
parent
de55e274c4
commit
1634ed47a8
1 changed files with 1 additions and 4 deletions
|
@ -156,13 +156,10 @@ fun BaseSimpleActivity.addNoMedia(path: String, callback: () -> Unit) {
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
file.createNewFile()
|
file.createNewFile()
|
||||||
applicationContext.scanFileRecursively(file) {
|
|
||||||
callback()
|
|
||||||
}
|
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
showErrorToast(e)
|
showErrorToast(e)
|
||||||
callback()
|
|
||||||
}
|
}
|
||||||
|
callback()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue