From 88ac4716969305dfea5fdea4e99595762c9e27a4 Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Tue, 21 May 2019 16:52:50 +0300 Subject: [PATCH] cleaning --- OsmAnd/res/values/strings.xml | 2 ++ OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java | 3 --- OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java | 5 ++--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index fb1b088be1..011d096e27 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -11,6 +11,8 @@ Thx - Hardy --> + Type: %s + Base Profile Select Routing Type You need to select Routing Type to create New Application Profile Enter Profile Name diff --git a/OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java b/OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java index 9facb4a2ff..9f638341e8 100644 --- a/OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java +++ b/OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java @@ -616,9 +616,6 @@ public class EditProfileFragment extends BaseOsmAndFragment { .icon(profile.iconId, profile.iconId); if (profile.routingProfileDataObject != null) { -// if () { -// -// } builder.setRoutingProfile(profile.routingProfileDataObject.getStringKey()); } diff --git a/OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java b/OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java index de8489ca5a..0b3b8a2063 100644 --- a/OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java +++ b/OsmAnd/src/net/osmand/plus/profiles/ProfileMenuAdapter.java @@ -63,12 +63,11 @@ public class ProfileMenuAdapter extends RecyclerView.Adapter final ApplicationMode item = items.get(position); if (item.getParent() != null) { holder.title.setText(item.getUserProfileName()); - holder.descr.setText(String.format("Type: %s", + holder.descr.setText(String.format(app.getString(R.string.profile_type_descr_string), Algorithms.capitalizeFirstLetterAndLowercase(item.getParent().getStringKey().replace("_", " ")))); } else { holder.title.setText(app.getResources().getString(item.getStringResource())); - holder.descr.setText(String.format("Base Profile, type: %s", - Algorithms.capitalizeFirstLetterAndLowercase(item.getStringKey().replace("_", " ")))); + holder.descr.setText(R.string.profile_type_base_string); } holder.title.setTextColor(app.getResources().getColor(isNightMode(app)