Fix longitude first part symbols count
This commit is contained in:
parent
01ffd6d974
commit
b9e9875c5e
2 changed files with 4 additions and 5 deletions
|
@ -676,9 +676,8 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
|||
|
||||
int format = getMyApplication().getSettings().COORDS_INPUT_FORMAT.get();
|
||||
|
||||
int firstPartSymbols = CoordinateInputFormats.getFirstPartSymbolsCount(format);
|
||||
setupEditTextEx(R.id.lat_first_input_et, firstPartSymbols, true);
|
||||
setupEditTextEx(R.id.lon_first_input_et, firstPartSymbols, false);
|
||||
setupEditTextEx(R.id.lat_first_input_et, CoordinateInputFormats.getFirstPartSymbolsCount(format, true), true);
|
||||
setupEditTextEx(R.id.lon_first_input_et, CoordinateInputFormats.getFirstPartSymbolsCount(format, false), false);
|
||||
|
||||
String firstSeparator = CoordinateInputFormats.getFirstSeparator(format);
|
||||
((TextView) mainView.findViewById(R.id.lat_first_separator_tv)).setText(firstSeparator);
|
||||
|
|
|
@ -43,8 +43,8 @@ public class CoordinateInputFormats {
|
|||
return format == DD_MM_MMM || format == DD_MM_MMMM || format == DD_MM_SS;
|
||||
}
|
||||
|
||||
public static int getFirstPartSymbolsCount(@CoordinateInputFormatDef int format) {
|
||||
return 2;
|
||||
public static int getFirstPartSymbolsCount(@CoordinateInputFormatDef int format, boolean latitude) {
|
||||
return latitude ? 2 : 3;
|
||||
}
|
||||
|
||||
public static int getSecondPartSymbolsCount(@CoordinateInputFormatDef int format) {
|
||||
|
|
Loading…
Reference in a new issue