Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 453030e6 authored by tibbi's avatar tibbi
Browse files

rescan both the old and new path after renaming

parent 4cb79e4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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'
    }
+1 −1
Original line number Diff line number Diff line
@@ -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)
            }
        }