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

Commit ff3cf951 authored by Martijn Coenen's avatar Martijn Coenen Committed by Automerger Merge Worker
Browse files

Merge "Don't update quota for non-emulated volumes." into rvc-dev am:...

Merge "Don't update quota for non-emulated volumes." into rvc-dev am: 29d6a24f am: 074f904e am: f30747ce am: b1553a59

Change-Id: I2954b143350b14ab2956a07c954bb60a5c9d09ad
parents ee55c77e b1553a59
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2447,7 +2447,12 @@ public class StorageManager {
        final String filePath = path.getCanonicalPath();
        final StorageVolume volume = getStorageVolume(path);
        if (volume == null) {
            throw new IllegalStateException("Failed to update quota type for " + filePath);
            Log.w(TAG, "Failed to update quota type for " + filePath);
            return;
        }
        if (!volume.isEmulated()) {
            // We only support quota tracking on emulated filesystems
            return;
        }

        final int userId = volume.getOwner().getIdentifier();