Skip to content

Commit

Permalink
locale
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhik committed Oct 10, 2016
1 parent 85caf1b commit 878a6fb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

/**
* Created by kazhik on 16/02/07.
Expand All @@ -34,7 +35,7 @@ public class ChartView implements DetailView {
private class LapTimeFormatter implements YAxisValueFormatter, ValueFormatter {
private String formatTime(float sec) {
// convert seconds -> min:sec
return String.format("%d:%02d",
return String.format(Locale.getDefault(), "%d:%02d",
(int)sec / 60, (int)sec % 60);
}
@Override
Expand Down

0 comments on commit 878a6fb

Please sign in to comment.