Remove unnecessary code, fix night theme and markers list
This commit is contained in:
parent
186c5563e4
commit
20fc78d631
3 changed files with 12 additions and 19 deletions
|
@ -22,7 +22,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
osmand:cardUseCompatPadding="true"
|
||||
osmand:cardCornerRadius="8dp">
|
||||
osmand:cardCornerRadius="2dp">
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:nestedScrollingEnabled="false"
|
||||
|
|
|
@ -287,7 +287,7 @@
|
|||
<color name="keyboard_item_add_button_divider_light">#4b62e3</color>
|
||||
<color name="keyboard_item_add_button_divider_dark">#121733</color>
|
||||
<color name="keyboard_divider_light">#e6e6e6</color>
|
||||
<color name="keyboard_divider_dark">#1f2326</color>
|
||||
<color name="keyboard_divider_dark">#2a2f33</color>
|
||||
|
||||
<color name="coordinate_input_status_bar_color_light">#4257c9</color>
|
||||
<color name="coordinate_input_status_bar_color_dark">#1b224d</color>
|
||||
|
|
|
@ -95,7 +95,6 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
|||
private boolean goToNextField;
|
||||
private int accuracy = 4;
|
||||
private List<OsmandTextFieldBoxes> textFieldBoxes;
|
||||
private List<EditText> inputEditTexts;
|
||||
private View mainView;
|
||||
private IconsCache iconsCache;
|
||||
private Location location;
|
||||
|
@ -208,14 +207,6 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
|||
|
||||
registerTextFieldBoxes();
|
||||
|
||||
inputEditTexts = new ArrayList<>();
|
||||
final EditText latitudeEditText = (EditText) mainView.findViewById(R.id.latitude_edit_text);
|
||||
inputEditTexts.add(latitudeEditText);
|
||||
final EditText longitudeEditText = (EditText) mainView.findViewById(R.id.longitude_edit_text);
|
||||
inputEditTexts.add(longitudeEditText);
|
||||
final EditText nameEditText = (EditText) mainView.findViewById(R.id.name_edit_text);
|
||||
inputEditTexts.add(nameEditText);
|
||||
|
||||
registerInputEditTexts();
|
||||
|
||||
if (savedInstanceState == null) {
|
||||
|
@ -527,13 +518,14 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
|||
}
|
||||
};
|
||||
|
||||
for (EditText inputEditText : inputEditTexts) {
|
||||
if (inputEditText.getId() != R.id.name_edit_text) {
|
||||
inputEditText.addTextChangedListener(textWatcher);
|
||||
for (OsmandTextFieldBoxes textFieldBox : textFieldBoxes) {
|
||||
EditText editText = textFieldBox.getEditText();
|
||||
if (editText.getId() != R.id.name_edit_text) {
|
||||
editText.addTextChangedListener(textWatcher);
|
||||
}
|
||||
inputEditText.setOnTouchListener(inputEditTextOnTouchListener);
|
||||
inputEditText.setOnLongClickListener(inputEditTextOnLongClickListener);
|
||||
inputEditText.setOnEditorActionListener(inputTextViewOnEditorActionListener);
|
||||
editText.setOnTouchListener(inputEditTextOnTouchListener);
|
||||
editText.setOnLongClickListener(inputEditTextOnLongClickListener);
|
||||
editText.setOnEditorActionListener(inputTextViewOnEditorActionListener);
|
||||
}
|
||||
|
||||
changeInputEditTextHints();
|
||||
|
@ -586,8 +578,9 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
|||
}
|
||||
|
||||
private void changeEditTextSelections() {
|
||||
for (EditText inputEditText : inputEditTexts) {
|
||||
inputEditText.setSelection(inputEditText.getText().length());
|
||||
for (OsmandTextFieldBoxes textFieldBox : textFieldBoxes) {
|
||||
EditText editText = textFieldBox.getEditText();
|
||||
editText.setSelection(editText.getText().length());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue