Commit d6e9d2a8 by 范玉宾

fix total duration err

Took 47 minutes
parent 560c631e
...@@ -28,7 +28,7 @@ class MediaPlayerTimeUtil { ...@@ -28,7 +28,7 @@ class MediaPlayerTimeUtil {
"$minute:$second" "$minute:$second"
} }
} }
}else if (time<60){ }else if (time in 1..59){
second = time second = time
return if (second in 0..9){ return if (second in 0..9){
"00:0$second" "00:0$second"
...@@ -36,7 +36,7 @@ class MediaPlayerTimeUtil { ...@@ -36,7 +36,7 @@ class MediaPlayerTimeUtil {
"00:$second" "00:$second"
} }
} }
return null return ""
} }
fun formatTimeOff(finishTime:Long):String{ fun formatTimeOff(finishTime:Long):String{
......
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