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

Commit 4ac07a64 authored by Andreas Schneider's avatar Andreas Schneider Committed by Bruno Martins
Browse files

storage: Set all sdcards to visible

If they are visible to apps the media scanner will scan them.

Change-Id: Icceceafc8469b6b9d1c0e72f8425d7e38ae4a10b
(cherry picked from commit 48dc2e83)
parent e11f7603
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1176,9 +1176,9 @@ class StorageManagerService extends IStorageManager.Stub
                vol.mountFlags |= VolumeInfo.MOUNT_FLAG_VISIBLE;
            }

            // Adoptable public disks are visible to apps, since they meet
            // public API requirement of being in a stable location.
            if (vol.disk.isAdoptable()) {
            // Set sdcards to visible to apps. If they are visible media is scanned
            // and they can be used for other stuff.
            if (vol.disk.isSd()) {
                vol.mountFlags |= VolumeInfo.MOUNT_FLAG_VISIBLE;
            }