From 312d5775ee6949e542a4b2c6d90bdd356861052c Mon Sep 17 00:00:00 2001 From: Nazar-Kutz Date: Thu, 11 Jun 2020 10:41:14 +0300 Subject: [PATCH] rename useLayoutDirectionForIcon -> flipIconForRtl --- .../net/osmand/plus/base/OsmandExpandableListFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/base/OsmandExpandableListFragment.java b/OsmAnd/src/net/osmand/plus/base/OsmandExpandableListFragment.java index 2293f74ef8..cc2f0b47af 100644 --- a/OsmAnd/src/net/osmand/plus/base/OsmandExpandableListFragment.java +++ b/OsmAnd/src/net/osmand/plus/base/OsmandExpandableListFragment.java @@ -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);