edit ReadRecordActivity.kt

pull/840/head
gedoor 4 years ago
parent 251235f150
commit fec5059a28
  1. 6
      app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt

@ -142,7 +142,11 @@ class ReadRecordActivity : BaseActivity<ActivityReadRecordBinding>() {
val h = if (hours > 0) "${hours}小时" else "" val h = if (hours > 0) "${hours}小时" else ""
val m = if (minutes > 0) "${minutes}分钟" else "" val m = if (minutes > 0) "${minutes}分钟" else ""
val s = if (seconds > 0) "${seconds}" else "" val s = if (seconds > 0) "${seconds}" else ""
return "$d$h$m$s" var time = "$d$h$m$s"
if (time.isBlank()) {
time = "0秒"
}
return time
} }
} }
Loading…
Cancel
Save