show Hours at the duration if it is exactly 3600 seconds
This commit is contained in:
parent
2720210a3e
commit
72785a5f85
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ buildscript {
|
|||
propMinSdkVersion = 16
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '3.17.5'
|
||||
propVersionName = '3.17.6'
|
||||
kotlin_version = '1.2.31'
|
||||
support_libs = '27.1.0'
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ fun Int.getFormattedDuration(): String {
|
|||
val minutes = this % 3600 / 60
|
||||
val seconds = this % 60
|
||||
|
||||
if (this > 3600) {
|
||||
if (this >= 3600) {
|
||||
sb.append(String.format(Locale.getDefault(), "%02d", hours)).append(":")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue