From ba396c7542d38d489cad24844ecccd87e46ae4b0 Mon Sep 17 00:00:00 2001 From: veliymolfar Date: Fri, 19 Jun 2020 18:01:06 +0300 Subject: [PATCH] fix edit osm poi opening hours formatting --- .../src/main/java/net/osmand/util/Algorithms.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/util/Algorithms.java b/OsmAnd-java/src/main/java/net/osmand/util/Algorithms.java index 720ecf5107..d302c91da7 100644 --- a/OsmAnd-java/src/main/java/net/osmand/util/Algorithms.java +++ b/OsmAnd-java/src/main/java/net/osmand/util/Algorithms.java @@ -707,13 +707,9 @@ 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); - } + int min = minutes % 60; + int hours = minutes / 60; + return String.format(Locale.UK, "%02d:%02d", hours, min); } public static > T parseEnumValue(T[] cl, String val, T defaultValue) {