cleaning
This commit is contained in:
parent
cd8959d114
commit
88ac471696
3 changed files with 4 additions and 6 deletions
|
@ -11,6 +11,8 @@
|
|||
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_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>
|
||||
|
|
|
@ -616,9 +616,6 @@ public class EditProfileFragment extends BaseOsmAndFragment {
|
|||
.icon(profile.iconId, profile.iconId);
|
||||
|
||||
if (profile.routingProfileDataObject != null) {
|
||||
// if () {
|
||||
//
|
||||
// }
|
||||
builder.setRoutingProfile(profile.routingProfileDataObject.getStringKey());
|
||||
}
|
||||
|
||||
|
|
|
@ -63,12 +63,11 @@ public class ProfileMenuAdapter extends RecyclerView.Adapter<ProfileViewHolder>
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue