add / edit toolbar title

This commit is contained in:
veliymolfar 2020-06-09 14:30:34 +03:00
parent a01e1ed37d
commit baec03ec1e
2 changed files with 2 additions and 0 deletions

View file

@ -11,6 +11,7 @@
Thx - Hardy
-->
<string name="add_online_source">Add online source</string>
<!-- string name="shared_string_all_time">All time</string -->
<string name="shared_string_night_map">Night map</string>
<string name="details_dialog_decr">Control visibility of additional details shown on the map</string>

View file

@ -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);