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

Commit c78a1d17 authored by Dominggoes Isakh's avatar Dominggoes Isakh
Browse files

Settings: Fix internal storage summary for non-emulated storage

BUGBASH-355

Change-Id: I5df43d0c46ab5cf742fa5ddb8a8c44056d375026
parent a9fac17f
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -170,8 +170,15 @@ 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);