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

Commit c1fda128 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Also consider secondary storage when verifying paths

Bug: 17673184
Bug: 17982103
Change-Id: Ief14c7776b02983191c46774fa7e4c76380de58d
parent d700e5a3
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
        }