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

Commit c2dc4229 authored by Dominggoes Isakh's avatar Dominggoes Isakh Committed by Michael Bestas
Browse files

Revert "Settings: Fix internal storage summary for non-emulated storage"

This reverts commit c78a1d17.

Change-Id: If3d3e5a6b1b30e077010b67c2c5db89fbed6d97d
parent f154e133
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -170,15 +170,8 @@ public class PrivateVolumeSettings extends SettingsPreferenceFragment {
            mSystemSize = 0;
        }

        // Get Primary Physical storage
        mSharedVolume = mStorageManager.getPrimaryPhysicalVolume();
        if (mSharedVolume != null) {
            // Adjust SystemSize by substracting the total space of Primary Physical Volume
            mSystemSize = mTotalSize - sharedDataSize - mSharedVolume.getPath().getTotalSpace();
        } else {
        // Find the emulated shared storage layered above this private volume
        mSharedVolume = mStorageManager.findEmulatedForPrivate(mVolume);
        }

        mMeasure = new StorageMeasurement(context, mVolume, mSharedVolume);
        mMeasure.setReceiver(mReceiver);