Merge "Handle stub volumes in StorageSessionController" am: 6341816b31

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id36fb3f7f0f8aa6ed917d6fa906e151cf152ffb3
This commit is contained in:
Treehugger Robot
2021-01-18 13:13:53 +00:00
committed by Automerger Merge Worker

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) {
return mIsFuseEnabled && !mIsResetting && (vol == null || isEmulatedOrPublic(vol));
return mIsFuseEnabled && !mIsResetting && (vol == null || isSupportedVolume(vol));
}
}