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

Commit 4683a10f authored by Marco Nelissen's avatar Marco Nelissen Committed by Android Git Automerger
Browse files

am 36c931b3: Merge "Also consider secondary storage when verifying paths" into lmp-dev

* commit '36c931b3':
  Also consider secondary storage when verifying paths
parents 0cd670b3 36c931b3
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
        }