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

Commit 48dc2e83 authored by Andreas Schneider's avatar Andreas Schneider Committed by Lukasz Patron
Browse files

storage: Set all sdcards to visible

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

Change-Id: Icceceafc8469b6b9d1c0e72f8425d7e38ae4a10b
parent caa84f1b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1314,9 +1314,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;
            }