Add getTranslatedItemName() to other class

This commit is contained in:
androiddevkotlin 2021-04-05 09:25:07 +03:00
parent b9e886ef64
commit 516881f8a5
2 changed files with 2 additions and 2 deletions

View file

@ -250,6 +250,6 @@ public class MapStyleAction extends SwitchableAction<String> {
public String getActionText(OsmandApplication application) { public String getActionText(OsmandApplication application) {
String currentSource = application.getSettings().RENDERER.get(); String currentSource = application.getSettings().RENDERER.get();
return application.getString(R.string.map_quick_action_pattern, currentSource); return application.getString(R.string.map_quick_action_pattern, getTranslatedItemName(application, currentSource));
} }
} }

View file

@ -221,6 +221,6 @@ public class MapSourceAction extends SwitchableAction<Pair<String, String>> {
? application.getSettings().MAP_TILE_SOURCES.get() ? application.getSettings().MAP_TILE_SOURCES.get()
: application.getString(R.string.vector_data); : application.getString(R.string.vector_data);
return application.getString(R.string.map_quick_action_pattern, currentSource); return application.getString(R.string.map_quick_action_pattern, getTranslatedItemName(application, currentSource));
} }
} }