Fixed another case

This commit is contained in:
Rsl1122 2017-10-24 12:02:20 +03:00
parent e6dfe7309c
commit 74f024506b

View File

@ -121,6 +121,8 @@ public class FormatUtils {
String m = Settings.FORMAT_MINUTES.toString().replace("%minutes%", String.valueOf(minutes));
if (hours == 0 && m.contains("%hours%")) {
m = m.replace("%hours%", Settings.FORMAT_MINUTES.toString().replace("%zero%", "0") + "0");
} else {
m = m.replace("%hours", "");
}
if (m.contains("%zero%") && String.valueOf(minutes).length() == 1) {
builder.append('0');
@ -131,6 +133,8 @@ public class FormatUtils {
String s = Settings.FORMAT_SECONDS.toString().replace("%seconds%", String.valueOf(seconds));
if (minutes == 0 && s.contains("%minutes%")) {
s = s.replace("%minutes%", Settings.FORMAT_MINUTES.toString().replace("%hours", "").replace("%zero%", "0") + 0);
} else {
s = s.replace("%minutes%", "");
}
if (s.contains("%zero%") && String.valueOf(seconds).length() == 1) {
builder.append('0');