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

Commit c88c0180 authored by Stephen Bird's avatar Stephen Bird Committed by Michael Bestas
Browse files

MediaScanner: Detect folders

If folders are ignored, MTP will show folders as files

Change-Id: I960b92ed2f17c7da635d369e3c37560e167485a1
(cherry picked from commit 63b5c3dc)
parent 01cb5dd9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1447,7 +1447,7 @@ public class MediaScanner implements AutoCloseable {

            // 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;