Merge "Handle stub volumes in StorageSessionController"

This commit is contained in:
Treehugger Robot
2021-01-18 12:54:48 +00:00
committed by Gerrit Code Review

View File

@@ -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) { private boolean shouldHandle(@Nullable VolumeInfo vol) {
return mIsFuseEnabled && !mIsResetting && (vol == null || isEmulatedOrPublic(vol)); return mIsFuseEnabled && !mIsResetting && (vol == null || isSupportedVolume(vol));
} }
} }