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

Commit 71c3a633 authored by Stephen Bird's avatar Stephen Bird Committed by Steve Kondik
Browse files

MediaScanner: Detect folders



If folders are ignored, MTP will show folders as files

Change-Id: I960b92ed2f17c7da635d369e3c37560e167485a1
(cherry picked from commit 63b5c3dc)
(cherry picked from commit 0e543c26)
Signed-off-by: default avatarChet Kener <Cl3Kener@gmail.com>
parent 61015262
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1401,7 +1401,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;