Specify locale for DecimalFormat in Coordinate Input
This commit is contained in:
parent
5771101031
commit
c1bd8b66f8
1 changed files with 3 additions and 1 deletions
|
@ -70,8 +70,10 @@ import net.osmand.util.LocationParser;
|
||||||
import net.osmand.util.MapUtils;
|
import net.osmand.util.MapUtils;
|
||||||
|
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
|
import java.text.DecimalFormatSymbols;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
import static android.content.ClipDescription.MIMETYPE_TEXT_PLAIN;
|
import static android.content.ClipDescription.MIMETYPE_TEXT_PLAIN;
|
||||||
import static android.content.Context.CLIPBOARD_SERVICE;
|
import static android.content.Context.CLIPBOARD_SERVICE;
|
||||||
|
@ -942,7 +944,7 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
||||||
}
|
}
|
||||||
|
|
||||||
private DecimalFormat createDecimalFormat(int accuracy) {
|
private DecimalFormat createDecimalFormat(int accuracy) {
|
||||||
return new DecimalFormat("###." + createString(accuracy, '#'));
|
return new DecimalFormat("###." + createString(accuracy, '#'), new DecimalFormatSymbols(Locale.US));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void dismissEditingMode() {
|
private void dismissEditingMode() {
|
||||||
|
|
Loading…
Reference in a new issue