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

Commit 7ed4b790 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

Memory: Fix UMS inclusion logic

Get rid of the unconditional flag toggle immediately following the
conditional one, which made it useless, and don't hide the options
menu when UMS is enabled anymore.

Change-Id: I0cd853d6bccf6e511d1e91f010e940a14f261c66
parent bc4cd779
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -105,8 +105,6 @@ public class Memory extends SettingsPreferenceFragment {
                                   && storageVolumes[0].allowMassStorage());
        }

        mMassStorageEnabled = (storageVolumes.length > 0
                && storageVolumes[0].allowMassStorage());
        int length = storageVolumes.length;
        mStorageVolumePreferenceCategories = new StorageVolumePreferenceCategory[length];
        for (int i = 0; i < length; i++) {
@@ -120,7 +118,7 @@ public class Memory extends SettingsPreferenceFragment {

        // only show options menu if we are not using the legacy USB mass storage support
        // or if we need the mountpoints switcher
        setHasOptionsMenu(!mMassStorageEnabled || mHasSwitchableStorage);
        setHasOptionsMenu(true);
    }

    @Override