fixes p.1

This commit is contained in:
Nazar-Kutz 2020-03-19 15:39:11 +02:00
parent 5d1bd56dd9
commit b972dfb748

View file

@ -363,11 +363,7 @@ public class RouteParametersFragment extends BaseSettingsFragment implements OnP
String summary = String.format(getString(R.string.ltr_or_rtl_combine_via_bold_point), String summary = String.format(getString(R.string.ltr_or_rtl_combine_via_bold_point),
enabled ? getString(R.string.shared_string_enabled) : getString(R.string.shared_string_disabled), enabled ? getString(R.string.shared_string_enabled) : getString(R.string.shared_string_disabled),
OsmAndFormatter.getFormattedDistance(allowedValue, app, false)); OsmAndFormatter.getFormattedDistance(allowedValue, app, false));
if (enabled) { switchPref.setSummary(summary);
switchPref.setSummaryOn(summary);
} else {
switchPref.setSummaryOff(summary);
}
switchPref.setChecked(enabled); switchPref.setChecked(enabled);
} }