Commit 9c6c7dc8 by 刘鹏

Merge branch 'fix/wjy/音频格式化bug修复' into 'd/v4.4.07'

音频格式化bug修复

See merge request app_android_lib/YDL-Component!304
parents c22888ef a02fa22f
......@@ -208,10 +208,7 @@ class AudioPlayView(context: Context, attrs: AttributeSet?) :
if (time <= 0) return "00:00"
val min = time / 60000
val ss = (time - min * 60000) / 1000
val m = "" + min
val s = "" + ss
return String.format("%02d:%02d", m, s)
return String.format("%02d:%02d", min, ss)
}
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