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

Commit 23f15380 authored by Mike Lockwood's avatar Mike Lockwood Committed by Android (Google) Code Review
Browse files

Merge "MediaScanner: Fix path mismatch in code that check for missing files in postScan()"

parents f474e382 f45853af
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -992,7 +992,12 @@ public class MediaScanner

    private boolean inScanDirectory(String path, String[] directories) {
        for (int i = 0; i < directories.length; i++) {
            if (path.startsWith(directories[i])) {
            String directory = directories[i];
            if (mExternalStoragePath != null && directory.equals(mMediaStoragePath)) {
                // database paths use external storage prefix
                directory = mExternalStoragePath;
            }
            if (path.startsWith(directory)) {
                return true;
            }
        }