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

Commit 64f88b42 authored by Matt Garnes's avatar Matt Garnes
Browse files

Fix incorrect ManageApplications options menu order value.

Change-Id: I5c9b7d1ce9e03fa0efe593efd76b4ad2899a126a
parent 20fb81a6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1114,11 +1114,13 @@ public class ManageApplications extends Fragment implements
                .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
        menu.add(0, RESET_APP_PREFERENCES, 4, R.string.reset_app_preferences)
                .setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
        int lastOptionOrder = 5;
        if (!Utils.isRestrictedProfile(getActivity())) {
            menu.add(0, SHOW_PROTECTED_APPS, 5, R.string.protected_apps)
                    .setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
            lastOptionOrder = 6;
        }
        menu.add(0, APP_INSTALL_LOCATION, 4, R.string.app_install_location_title)
        menu.add(0, APP_INSTALL_LOCATION, lastOptionOrder, R.string.app_install_location_title)
                .setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
        updateOptionsMenu();
    }