add item to main from hidden if main size < 4

This commit is contained in:
veliymolfar 2020-05-07 16:23:06 +03:00
parent 66060f78b2
commit 08829e7dca

View file

@ -341,6 +341,9 @@ public class ConfigureMenuItemsFragment extends BaseOsmAndFragment
}
} else {
hiddenMenuItems.remove(id);
if (screenType == ScreenType.CONTEXT_MENU_ACTIONS && mainActionItems.size() < MAIN_BUTTONS_QUANTITY) {
mainActionItems.add(id);
}
}
wasReset = false;
isChanged = true;