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

Commit 63b5c3dc authored by Stephen Bird's avatar Stephen Bird
Browse files

MediaScanner: Detect folders

If folders are ignored, MTP will show folders as files

Change-Id: I960b92ed2f17c7da635d369e3c37560e167485a1
parent 287c96e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1508,7 +1508,7 @@ public class MediaScanner

            // always scan the file, so we can return the content://media Uri for existing files
            return mClient.doScanFile(path, mimeType, lastModifiedSeconds, file.length(),
                    false, true, MediaScanner.isNoMediaPath(path));
                    file.isDirectory(), true, MediaScanner.isNoMediaPath(path));
        } catch (RemoteException e) {
            Log.e(TAG, "RemoteException in MediaScanner.scanFile()", e);
            return null;