Commit a02fa22f by 王佳洋

音频格式化bug修复

parent c22888ef
...@@ -208,10 +208,7 @@ class AudioPlayView(context: Context, attrs: AttributeSet?) : ...@@ -208,10 +208,7 @@ class AudioPlayView(context: Context, attrs: AttributeSet?) :
if (time <= 0) return "00:00" if (time <= 0) return "00:00"
val min = time / 60000 val min = time / 60000
val ss = (time - min * 60000) / 1000 val ss = (time - min * 60000) / 1000
return String.format("%02d:%02d", min, ss)
val m = "" + min
val s = "" + ss
return String.format("%02d:%02d", m, s)
} }
override fun onDetachedFromWindow() { override fun onDetachedFromWindow() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment