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

Commit 6c346b60 authored by Zim's avatar Zim Committed by Automerger Merge Worker
Browse files

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

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

Change-Id: I97879d89f5fad641676aa3b215fef79c723e3145
parents 346cee22 4ede3cff
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -336,11 +336,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. */