mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
do not rescan the folder after removing nomedia
This commit is contained in:
parent
f5eb3c931e
commit
19ea96814e
1 changed files with 1 additions and 3 deletions
|
@ -235,10 +235,8 @@ fun SimpleActivity.addNoMedia(path: String, callback: () -> Unit) {
|
|||
fun SimpleActivity.removeNoMedia(path: String, callback: () -> Unit) {
|
||||
val file = File(path, NOMEDIA)
|
||||
deleteFile(file) {
|
||||
scanFile(File(path)) {
|
||||
callback()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun SimpleActivity.toggleFileVisibility(oldFile: File, hide: Boolean, callback: (newFile: File) -> Unit) {
|
||||
|
|
Loading…
Reference in a new issue