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

Commit 6341816b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Handle stub volumes in StorageSessionController"

parents ea47f9ee b19c9dcd
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line 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) {
    private boolean shouldHandle(@Nullable VolumeInfo vol) {
        return mIsFuseEnabled && !mIsResetting && (vol == null || isEmulatedOrPublic(vol));
        return mIsFuseEnabled && !mIsResetting && (vol == null || isSupportedVolume(vol));
    }
    }
}
}