Fixed a case where %hours% would appear, (Last commit)

This commit is contained in:
Rsl1122 2017-10-24 12:00:52 +03:00
parent 19e16a9afe
commit e6dfe7309c

View File

@ -130,7 +130,7 @@ public class FormatUtils {
if (seconds != 0) {
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("%zero%", "0") + 0);
s = s.replace("%minutes%", Settings.FORMAT_MINUTES.toString().replace("%hours", "").replace("%zero%", "0") + 0);
}
if (s.contains("%zero%") && String.valueOf(seconds).length() == 1) {
builder.append('0');