This commit is contained in:
madwasp79 2019-05-21 16:52:50 +03:00
parent cd8959d114
commit 88ac471696
3 changed files with 4 additions and 6 deletions

View file

@ -11,6 +11,8 @@
Thx - Hardy Thx - Hardy
--> -->
<string name="profile_type_descr_string">Type: %s</string>
<string name="profile_type_base_string">Base Profile</string>
<string name="profile_alert_need_routing_type_title">Select Routing Type</string> <string name="profile_alert_need_routing_type_title">Select Routing Type</string>
<string name="profile_alert_need_routing_type_msg">You need to select Routing Type to create New Application Profile</string> <string name="profile_alert_need_routing_type_msg">You need to select Routing Type to create New Application Profile</string>
<string name="profile_alert_need_profile_name_title">Enter Profile Name</string> <string name="profile_alert_need_profile_name_title">Enter Profile Name</string>

View file

@ -616,9 +616,6 @@ public class EditProfileFragment extends BaseOsmAndFragment {
.icon(profile.iconId, profile.iconId); .icon(profile.iconId, profile.iconId);
if (profile.routingProfileDataObject != null) { if (profile.routingProfileDataObject != null) {
// if () {
//
// }
builder.setRoutingProfile(profile.routingProfileDataObject.getStringKey()); builder.setRoutingProfile(profile.routingProfileDataObject.getStringKey());
} }

View file

@ -63,12 +63,11 @@ public class ProfileMenuAdapter extends RecyclerView.Adapter<ProfileViewHolder>
final ApplicationMode item = items.get(position); final ApplicationMode item = items.get(position);
if (item.getParent() != null) { if (item.getParent() != null) {
holder.title.setText(item.getUserProfileName()); 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("_", " ")))); Algorithms.capitalizeFirstLetterAndLowercase(item.getParent().getStringKey().replace("_", " "))));
} else { } else {
holder.title.setText(app.getResources().getString(item.getStringResource())); holder.title.setText(app.getResources().getString(item.getStringResource()));
holder.descr.setText(String.format("Base Profile, type: %s", holder.descr.setText(R.string.profile_type_base_string);
Algorithms.capitalizeFirstLetterAndLowercase(item.getStringKey().replace("_", " "))));
} }
holder.title.setTextColor(app.getResources().getColor(isNightMode(app) holder.title.setTextColor(app.getResources().getColor(isNightMode(app)