Skip to content

Commit c492ee8

Browse files
author
Kevin Li
authored
Remove .0 from distance text in scale bar (#1014)
1 parent a050fbb commit c492ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin-scalebar/src/main/java/com/mapbox/pluginscalebar/ScaleBarWidget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class ScaleBarWidget extends View {
4343
private ArrayList<Pair<Integer, Integer>> scaleTable;
4444
private String unit;
4545
private final RefreshHandler refreshHandler;
46-
private DecimalFormat decimalFormat = new DecimalFormat("0.0");
46+
private DecimalFormat decimalFormat = new DecimalFormat("0.#");
4747

4848
ScaleBarWidget(@NonNull Context context) {
4949
super(context);

0 commit comments

Comments
 (0)