rescan both the old and new path after renaming
This commit is contained in:
parent
4cb79e4e76
commit
453030e6dd
2 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue