From baec03ec1e395e243c6c77849426e33d444c7c63 Mon Sep 17 00:00:00 2001 From: veliymolfar Date: Tue, 9 Jun 2020 14:30:34 +0300 Subject: [PATCH] add / edit toolbar title --- OsmAnd/res/values/strings.xml | 1 + .../net/osmand/plus/mapsource/EditMapSourceDialogFragment.java | 1 + 2 files changed, 2 insertions(+) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 8f16e46df5..c063b5e552 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -11,6 +11,7 @@ Thx - Hardy --> + Add online source Night map Control visibility of additional details shown on the map diff --git a/OsmAnd/src/net/osmand/plus/mapsource/EditMapSourceDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapsource/EditMapSourceDialogFragment.java index b8c11d0d10..be4023ba52 100644 --- a/OsmAnd/src/net/osmand/plus/mapsource/EditMapSourceDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapsource/EditMapSourceDialogFragment.java @@ -124,6 +124,7 @@ public class EditMapSourceDialogFragment extends BaseOsmAndDialogFragment Toolbar toolbar = root.findViewById(R.id.toolbar); toolbar.setBackgroundColor(ContextCompat.getColor(app, nightMode ? R.color.app_bar_color_dark : R.color.app_bar_color_light)); toolbar.setTitleTextColor(ContextCompat.getColor(app, nightMode ? R.color.active_buttons_and_links_text_dark : R.color.active_buttons_and_links_text_light)); + toolbar.setTitle(editedLayerName == null ? R.string.add_online_source : R.string.edit_online_source); ImageButton iconHelp = root.findViewById(R.id.toolbar_action); Drawable closeDrawable = app.getUIUtilities().getIcon(AndroidUtils.getNavigationIconResId(app), nightMode ? R.color.active_buttons_and_links_text_dark : R.color.active_buttons_and_links_text_light);