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

Commit 60a3f395 authored by yong.zou's avatar yong.zou Committed by Gerrit Code Review
Browse files

Settings: Fix setting app install location as "Removable SD card" without SD card inserted

[Preconditions]
1. SD card is not inserted

[Procedures]
1.Enter Settings -> Apps -> Tap the menu icon -> Tap the "Preferred install location"

[Expect results]
The  "Removable SD card" should be hidden if SD card is not inserted

Change-Id: I0e92a3f905ae98662ced6943637bff4b1b21c4fd
parent e8f736cd
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1119,8 +1119,11 @@ public class ManageApplications extends Fragment implements
                    .setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
            lastOptionOrder = 6;
        }
        if (Environment.getSecondaryStorageDirectory() != null
                && Environment.MEDIA_MOUNTED.equals(Environment.getSecondaryStorageState())) {
            menu.add(0, APP_INSTALL_LOCATION, lastOptionOrder, R.string.app_install_location_title)
                    .setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
        }
        updateOptionsMenu();
    }