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

Commit 17d37268 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Handle stub volumes in StorageSessionController"

parents 0d765236 fad9e3a9
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -382,7 +382,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 !mIsResetting && (vol == null || isEmulatedOrPublic(vol));
        return !mIsResetting && (vol == null || isSupportedVolume(vol));
    }
}