mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-21 06:20:39 +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
@ -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…
x
Reference in New Issue
Block a user