removing a check, allow removing existing files from mediastore
This commit is contained in:
parent
8c07c451bd
commit
b1bdbfc3a9
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ buildscript {
|
|||
propMinSdkVersion = 21
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '5.21.0'
|
||||
propVersionName = '5.21.1'
|
||||
kotlin_version = '1.3.61'
|
||||
}
|
||||
|
||||
|
|
|
@ -295,7 +295,7 @@ fun Context.getFileUri(path: String) = when {
|
|||
|
||||
// these functions update the mediastore instantly, MediaScannerConnection.scanFileRecursively takes some time to really get applied
|
||||
fun Context.deleteFromMediaStore(path: String) {
|
||||
if (getDoesFilePathExist(path) || getIsPathDirectory(path)) {
|
||||
if (getIsPathDirectory(path)) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue