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

Commit 36c931b3 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android (Google) Code Review
Browse files

Merge "Also consider secondary storage when verifying paths" into lmp-dev

parents a0b3796d c1fda128
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -306,9 +306,11 @@ public class MtpDatabase {
        try {
            File f = new File(path);
            String canonical = f.getCanonicalPath();
            if (canonical.startsWith(mMediaStoragePath)) {
            for (String root: mStorageMap.keySet()) {
                if (canonical.startsWith(root)) {
                    return true;
                }
            }
        } catch (IOException e) {
            // ignore
        }