do not rescan the folder after removing nomedia
This commit is contained in:
parent
f5eb3c931e
commit
19ea96814e
|
@ -235,11 +235,9 @@ fun SimpleActivity.addNoMedia(path: String, callback: () -> Unit) {
|
||||||
fun SimpleActivity.removeNoMedia(path: String, callback: () -> Unit) {
|
fun SimpleActivity.removeNoMedia(path: String, callback: () -> Unit) {
|
||||||
val file = File(path, NOMEDIA)
|
val file = File(path, NOMEDIA)
|
||||||
deleteFile(file) {
|
deleteFile(file) {
|
||||||
scanFile(File(path)) {
|
|
||||||
callback()
|
callback()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
fun SimpleActivity.toggleFileVisibility(oldFile: File, hide: Boolean, callback: (newFile: File) -> Unit) {
|
fun SimpleActivity.toggleFileVisibility(oldFile: File, hide: Boolean, callback: (newFile: File) -> Unit) {
|
||||||
val path = oldFile.parent
|
val path = oldFile.parent
|
||||||
|
|
Loading…
Reference in New Issue