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

Commit 574e170e authored by Sean Stout's avatar Sean Stout
Browse files

Renaming a file causes it to be rescanned

Previously, if a file was renamed, it would not be rescanned by the
media scanner. This caused for sound names to reported incorrectly after
renaming a file.

Bug: 70583116
Test: manual - rename a file in Alarms folder using downloads and ensure
new name is reflected

Change-Id: I42b9b4a4cda638d94b713575eb9e51feb2004cfa
parent 23627fbf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -236,6 +236,7 @@ public abstract class FileSystemProvider extends DocumentsProvider {
        moveInMediaStore(visibleFileBefore, getFileForDocId(afterDocId, true));

        if (!TextUtils.equals(docId, afterDocId)) {
            scanFile(after);
            return afterDocId;
        } else {
            return null;