Deleted primary_text_field_boxes_color

This commit is contained in:
Chumva 2018-02-13 18:46:39 +02:00
parent 3e858affea
commit 60b7859f6a
3 changed files with 8 additions and 15 deletions

View file

@ -2,8 +2,6 @@
<resources> <resources>
<color name="switch_track_color_measure_instruments">#c5d2e6</color> <color name="switch_track_color_measure_instruments">#c5d2e6</color>
<color name="primary_text_field_boxes_color">#ff8800</color>
<color name="mapillary_color">#3db878</color> <color name="mapillary_color">#3db878</color>
<color name="mapillary_color_pressed">#3a9f73</color> <color name="mapillary_color_pressed">#3a9f73</color>
<color name="mapillary_action_bar">#14c45d</color> <color name="mapillary_action_bar">#14c45d</color>

View file

@ -65,7 +65,7 @@ public class RenameMarkerBottomSheetDialogFragment extends BottomSheetDialogFrag
((TextInputLayout) textBox).setHintTextAppearance(R.style.OsmandDarkTheme_MarkerFragment); ((TextInputLayout) textBox).setHintTextAppearance(R.style.OsmandDarkTheme_MarkerFragment);
} else if (textBox instanceof OsmandTextFieldBoxes) { } else if (textBox instanceof OsmandTextFieldBoxes) {
((OsmandTextFieldBoxes) textBox).activate(true); ((OsmandTextFieldBoxes) textBox).activate(true);
((OsmandTextFieldBoxes) textBox).setPrimaryColor(getResources().getColor(R.color.primary_text_field_boxes_color)); ((OsmandTextFieldBoxes) textBox).setPrimaryColor(ContextCompat.getColor(mapActivity,R.color.color_dialog_buttons_dark));
} }
} }
nameEditText.setText(marker.getName(mapActivity)); nameEditText.setText(marker.getName(mapActivity));

View file

@ -1119,7 +1119,6 @@ public class MeasurementToolFragment extends BaseOsmAndFragment {
.setPositiveButton(R.string.shared_string_save, new DialogInterface.OnClickListener() { .setPositiveButton(R.string.shared_string_save, new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
final String name = nameEt.getText().toString(); final String name = nameEt.getText().toString();
String fileName = name + GPX_SUFFIX; String fileName = name + GPX_SUFFIX;
if (textChanged[0]) { if (textChanged[0]) {
@ -1131,7 +1130,6 @@ public class MeasurementToolFragment extends BaseOsmAndFragment {
} }
} }
saveNewGpx(dir, fileName, showOnMapToggle.isChecked(), saveType, false); saveNewGpx(dir, fileName, showOnMapToggle.isChecked(), saveType, false);
} }
}) })
.setNegativeButton(R.string.shared_string_cancel, null); .setNegativeButton(R.string.shared_string_cancel, null);
@ -1155,18 +1153,15 @@ public class MeasurementToolFragment extends BaseOsmAndFragment {
warningTextView.setVisibility(View.VISIBLE); warningTextView.setVisibility(View.VISIBLE);
warningTextView.setText(R.string.file_with_name_already_exists); warningTextView.setText(R.string.file_with_name_already_exists);
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(true); dialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(true);
} else if (editable.toString().trim().isEmpty()) { } else if (editable.toString().trim().isEmpty()) {
warningTextView.setVisibility(View.VISIBLE); warningTextView.setVisibility(View.VISIBLE);
warningTextView.setText(R.string.enter_the_file_name); warningTextView.setText(R.string.enter_the_file_name);
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(false); dialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(false);
} else { } else {
warningTextView.setVisibility(View.INVISIBLE); warningTextView.setVisibility(View.INVISIBLE);
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(true); dialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(true);
} }
textChanged[0] = true; textChanged[0] = true;
} }
}); });
} }
@ -1181,13 +1176,13 @@ public class MeasurementToolFragment extends BaseOsmAndFragment {
} }
private void saveGpx(final File dir, private void saveGpx(final File dir,
final String fileName, final String fileName,
final boolean showOnMap, final boolean showOnMap,
final GPXFile gpx, final GPXFile gpx,
final boolean openTrackActivity, final boolean openTrackActivity,
final NewGpxData.ActionType actionType, final NewGpxData.ActionType actionType,
final SaveType saveType, final SaveType saveType,
final boolean close) { final boolean close) {
new AsyncTask<Void, Void, String>() { new AsyncTask<Void, Void, String>() {