rename useLayoutDirectionForIcon -> flipIconForRtl

This commit is contained in:
Nazar-Kutz 2020-06-11 10:41:14 +03:00
parent dafbd22b5d
commit 312d5775ee

View file

@ -88,14 +88,14 @@ public abstract class OsmandExpandableListFragment extends BaseOsmAndFragment
}
public MenuItem createMenuItem(Menu m, int id, int titleRes, int iconId, int menuItemType,
boolean useLayoutDirectionForIcon) {
boolean flipIconForRtl) {
OsmandApplication app = requireMyApplication();
Drawable d = iconId == 0 ? null : app.getUIUtilities().getIcon(iconId, isLightActionBar() ?
R.color.active_buttons_and_links_text_light :
R.color.active_buttons_and_links_text_dark);
MenuItem menuItem = m.add(0, id, 0, titleRes);
if (d != null) {
if (useLayoutDirectionForIcon) {
if (flipIconForRtl) {
d = AndroidUtils.getDrawableForDirection(app, d);
}
menuItem.setIcon(d);