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

Commit 51195b56 authored by Adam Powell's avatar Adam Powell
Browse files

Fix bug 4725323 - 'More' shows the icons which are already available

in settings

Change-Id: I161787710fbadaa19b93de3e69f3c60db2be73a6
parent 93aa58fd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -184,12 +184,12 @@ public class ListMenuPresenter implements MenuPresenter, AdapterView.OnItemClick

    private class MenuAdapter extends BaseAdapter {
        public int getCount() {
            ArrayList<MenuItemImpl> items = mMenu.getVisibleItems();
            ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
            return items.size() - mItemIndexOffset;
        }

        public MenuItemImpl getItem(int position) {
            ArrayList<MenuItemImpl> items = mMenu.getVisibleItems();
            ArrayList<MenuItemImpl> items = mMenu.getNonActionItems();
            return items.get(position + mItemIndexOffset);
        }