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

Commit f6e84e9f authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Handle stub volumes in StorageSessionController" am: 6341816b am: ac9948da

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1d6a220be5413fe6e1222acc753c6e8237e12a21
parents 7e54a837 ac9948da
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -361,7 +361,11 @@ public final class StorageSessionController {
        }
    }

    private static boolean isSupportedVolume(VolumeInfo vol) {
        return isEmulatedOrPublic(vol) || vol.type == VolumeInfo.TYPE_STUB;
    }

    private boolean shouldHandle(@Nullable VolumeInfo vol) {
        return mIsFuseEnabled && !mIsResetting && (vol == null || isEmulatedOrPublic(vol));
        return mIsFuseEnabled && !mIsResetting && (vol == null || isSupportedVolume(vol));
    }
}