do not rescan .nomedia file at hiding a folder, it can delete the file
This commit is contained in:
parent
de55e274c4
commit
1634ed47a8
|
@ -156,13 +156,10 @@ fun BaseSimpleActivity.addNoMedia(path: String, callback: () -> Unit) {
|
|||
} else {
|
||||
try {
|
||||
file.createNewFile()
|
||||
applicationContext.scanFileRecursively(file) {
|
||||
callback()
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
callback()
|
||||
}
|
||||
callback()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue