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

Commit 93df01e3 authored by Pierre's avatar Pierre Committed by Jeff Sharkey
Browse files

remove primary condition check on storage format.



this change seemed to have been introduced originally
via commit d2a6f28f
as a workaround to fix interoperability problem with MTP,
then commit 8218d3ba
seemed to have address this problem.

therefore it looks like removing the original restriction
is in order to allow formating of the sd-card when not
primary storage.

Bug: 11352632
Change-Id: I0419135a607dac08c44a3f30a7ccdcad17c46437
Signed-off-by: default avatarPierre <pierre@broadcom.com>
parent cace3d8d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -205,9 +205,7 @@ public class StorageVolumePreferenceCategory extends PreferenceCategory {
            addPreference(mMountTogglePreference);
        }

        // Only allow formatting of primary physical storage
        // TODO: enable for non-primary volumes once MTP is fixed
        final boolean allowFormat = mVolume != null ? mVolume.isPrimary() : false;
        final boolean allowFormat = mVolume != null;
        if (allowFormat) {
            mFormatPreference = new Preference(context);
            mFormatPreference.setTitle(R.string.sd_format);