rescan both the old and new path after renaming

This commit is contained in:
tibbi 2018-02-20 20:25:46 +01:00
parent 4cb79e4e76
commit 453030e6dd
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ buildscript {
propMinSdkVersion = 16
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '3.12.13'
propVersionName = '3.12.14'
kotlin_version = '1.2.21'
support_libs = '27.0.2'
}

View file

@ -507,7 +507,7 @@ fun BaseSimpleActivity.renameFile(oldPath: String, newPath: String, callback: ((
File(newPath).setLastModified(System.currentTimeMillis())
}
updateInMediaStore(oldPath, newPath)
scanPath(newPath) {
scanPaths(arrayListOf(oldPath, newPath)) {
callback?.invoke(true)
}
}