Merge pull request #8515 from osmandapp/minor_fixes

Change profile description
This commit is contained in:
max-klaus 2020-02-19 19:48:29 +03:00 committed by GitHub
commit 3ba3f2f1d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -11,6 +11,7 @@
Thx - Hardy
-->
<string name="profile_type_custom_string">Custom profile</string>
<string name="shared_string_angle_param">Angle: %s°</string>
<string name="shared_string_angle">Angle</string>
<string name="recalc_angle_dialog_descr">Extra straight segment between my location and calculated route will be displayed until the route is recalculated</string>

View file

@ -813,8 +813,7 @@ public abstract class BaseSettingsFragment extends PreferenceFragmentCompat impl
public static String getAppModeDescription(Context ctx, ApplicationMode mode) {
String description;
if (mode.isCustomProfile()) {
description = String.format(ctx.getString(R.string.profile_type_descr_string),
Algorithms.capitalizeFirstLetterAndLowercase(mode.getParent().toHumanString()));
description = ctx.getString(R.string.profile_type_custom_string);
} else {
description = ctx.getString(R.string.profile_type_base_string);
}