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

Commit 4566cb57 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "No quota-level details for public volumes." into oc-dev

parents 6bfcc82a 829bfe8c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -152,6 +152,12 @@ public class StorageMeasurement {
        final MeasurementDetails details = new MeasurementDetails();
        if (mVolume == null) return details;

        if (mVolume.getType() == VolumeInfo.TYPE_PUBLIC) {
            details.totalSize = mVolume.getPath().getTotalSpace();
            details.availSize = mVolume.getPath().getUsableSpace();
            return details;
        }

        try {
            details.totalSize = mStats.getTotalBytes(mVolume.fsUuid);
            details.availSize = mStats.getFreeBytes(mVolume.fsUuid);
@@ -161,7 +167,6 @@ public class StorageMeasurement {
            return details;
        }


        final long finishTotal = SystemClock.elapsedRealtime();
        Log.d(TAG, "Measured total storage in " + (finishTotal - start) + "ms");