Bug fixes

This commit is contained in:
Tommaso Berlose
2017-10-20 21:12:31 +02:00
parent b0559e9a15
commit a97aa24ff7
4 changed files with 5 additions and 5 deletions

View File

@ -415,7 +415,7 @@ object Util {
if (difference < 0) {
return ""
} else if (difference < 1000 * 60) {
} else if (TimeUnit.MILLISECONDS.toHours(difference) < 1) {
val minutes = TimeUnit.MILLISECONDS.toMinutes(difference)
var time = ""
if (minutes > 0) {
@ -423,7 +423,7 @@ object Util {
}
return String.format("%s %s", context.getString(R.string.in_code), time)
} else if (difference < 1000 * 60 * 6) {
} else if (TimeUnit.MILLISECONDS.toHours(difference) < 12) {
val hour = TimeUnit.MILLISECONDS.toHours(difference)
var time = ""
if (hour > 0) {