Merge pull request #9279 from osmandapp/fix_8604

fix edit osm poi opening hours formatting
This commit is contained in:
vshcherb 2020-06-19 17:20:35 +02:00 committed by GitHub
commit 411d56aa91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -707,14 +707,10 @@ public class Algorithms {
}
public static String formatMinutesDuration(int minutes) {
if (minutes < 60) {
return String.valueOf(minutes);
} else {
int min = minutes % 60;
int hours = minutes / 60;
return String.format(Locale.UK, "%02d:%02d", hours, min);
}
}
public static <T extends Enum<T>> T parseEnumValue(T[] cl, String val, T defaultValue) {
for (T aCl : cl) {