Harmonize using "On/Off" vs. partial "Enabled/Disabled"
This commit is contained in:
parent
6dea7dde6b
commit
50f510f1d1
6 changed files with 8 additions and 8 deletions
|
@ -67,8 +67,8 @@
|
|||
android:paddingRight="9.5dp"
|
||||
android:paddingTop="8dp"
|
||||
android:textColor="?attr/switch_ex_text_color"
|
||||
android:textOff="@string/shared_string_disabled"
|
||||
android:textOn="@string/shared_string_enabled"
|
||||
android:textOff="@string/shared_string_off"
|
||||
android:textOn="@string/shared_string_on"
|
||||
android:textSize="@dimen/default_sub_text_size"
|
||||
android:lines="1"
|
||||
android:maxLines="1"
|
||||
|
|
|
@ -70,8 +70,8 @@ public class RasterMapMenu {
|
|||
}
|
||||
|
||||
final boolean selected = mapTypeDescr != null;
|
||||
final int toggleActionStringId = selected ? R.string.shared_string_enabled
|
||||
: R.string.shared_string_disabled;
|
||||
final int toggleActionStringId = selected ? R.string.shared_string_on
|
||||
: R.string.shared_string_off;
|
||||
|
||||
final OnMapSelectedCallback onMapSelectedCallback =
|
||||
new OnMapSelectedCallback() {
|
||||
|
|
|
@ -69,7 +69,7 @@ public class MapillaryFiltersFragment extends BaseOsmAndFragment {
|
|||
|
||||
final View toggleRow = view.findViewById(R.id.toggle_row);
|
||||
final boolean selected = settings.SHOW_MAPILLARY.get();
|
||||
final int toggleActionStringId = selected ? R.string.shared_string_enabled : R.string.shared_string_disabled;
|
||||
final int toggleActionStringId = selected ? R.string.shared_string_on : R.string.shared_string_off;
|
||||
int toggleIconColorId;
|
||||
int toggleIconId;
|
||||
if (selected) {
|
||||
|
|
|
@ -34,7 +34,7 @@ public class OptionsBottomSheetDialogFragment extends MenuBottomSheetDialogFragm
|
|||
|
||||
BaseBottomSheetItem snapToRoadItem = new BottomSheetItemWithCompoundButton.Builder()
|
||||
.setChecked(snapToRoadEnabled)
|
||||
.setDescription(getString(snapToRoadEnabled ? R.string.shared_string_enabled : R.string.shared_string_disabled))
|
||||
.setDescription(getString(snapToRoadEnabled ? R.string.shared_string_on : R.string.shared_string_off))
|
||||
.setIcon(snapToRoadEnabled
|
||||
? getActiveIcon(R.drawable.ic_action_snap_to_road)
|
||||
: getContentIcon(R.drawable.ic_action_snap_to_road))
|
||||
|
|
|
@ -86,7 +86,7 @@ public class ContourLinesMenu {
|
|||
final OsmandSettings.CommonPreference<String> colorPref = settings.getCustomRenderProperty(colorSchemeProp.getAttrName());
|
||||
|
||||
final boolean selected = !pref.get().equals(CONTOUR_LINES_DISABLED_VALUE);
|
||||
final int toggleActionStringId = selected ? R.string.shared_string_enabled : R.string.shared_string_disabled;
|
||||
final int toggleActionStringId = selected ? R.string.shared_string_on : R.string.shared_string_off;
|
||||
final int showZoomLevelStringId = R.string.show_from_zoom_level;
|
||||
final int colorSchemeStringId = R.string.srtm_color_scheme;
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ public class HillshadeMenu {
|
|||
}
|
||||
|
||||
final boolean selected = plugin.isHillShadeLayerEnabled();
|
||||
final int toggleActionStringId = selected ? R.string.shared_string_enabled : R.string.shared_string_disabled;
|
||||
final int toggleActionStringId = selected ? R.string.shared_string_on : R.string.shared_string_off;
|
||||
|
||||
ContextMenuAdapter.OnRowItemClick l = new ContextMenuAdapter.OnRowItemClick() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue