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

Commit 4ede3cff authored by Zim's avatar Zim Committed by Automerger Merge Worker
Browse files

Avoid notifying the FUSE daemon for invisible volumes am: 64c342d2

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12400830

Change-Id: I35f98bafd5583788f8cf04df53cafcde171dd530
parents 79d4b988 64c342d2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -338,11 +338,12 @@ public final class StorageSessionController {
    }

    /**
     * Returns {@code true} if {@code vol} is an emulated or public volume,
     * Returns {@code true} if {@code vol} is an emulated or visible public volume,
     * {@code false} otherwise
     **/
    public static boolean isEmulatedOrPublic(VolumeInfo vol) {
        return vol.type == VolumeInfo.TYPE_EMULATED || vol.type == VolumeInfo.TYPE_PUBLIC;
        return vol.type == VolumeInfo.TYPE_EMULATED
                || (vol.type == VolumeInfo.TYPE_PUBLIC && vol.isVisible());
    }

    /** Exception thrown when communication with the {@link ExternalStorageService} fails. */