removing a check, allow removing existing files from mediastore

This commit is contained in:
tibbi 2019-12-25 17:44:03 +01:00
parent 8c07c451bd
commit b1bdbfc3a9
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.21.0'
propVersionName = '5.21.1'
kotlin_version = '1.3.61'
}

View file

@ -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
}