diff --git a/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt b/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt index 717d1d8d7..f974a3dbc 100644 --- a/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt +++ b/app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt @@ -142,7 +142,11 @@ class ReadRecordActivity : BaseActivity() { val h = if (hours > 0) "${hours}小时" else "" val m = if (minutes > 0) "${minutes}分钟" 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 } } \ No newline at end of file