renaming video length to video duration
This commit is contained in:
parent
d78b9a87d2
commit
4cbbca9f54
|
@ -458,7 +458,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Thumbnai
|
||||||
|
|
||||||
val showVideoDuration = medium.isVideo() && config.showThumbnailVideoDuration
|
val showVideoDuration = medium.isVideo() && config.showThumbnailVideoDuration
|
||||||
if (showVideoDuration) {
|
if (showVideoDuration) {
|
||||||
video_duration.text = medium.getVideoLength().getFormattedDuration()
|
video_duration.text = medium.getVideoDuration().getFormattedDuration()
|
||||||
}
|
}
|
||||||
video_duration.beVisibleIf(showVideoDuration)
|
video_duration.beVisibleIf(showVideoDuration)
|
||||||
|
|
||||||
|
|
|
@ -523,7 +523,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupVideoDuration() {
|
private fun setupVideoDuration() {
|
||||||
mDuration = medium.getVideoLength()
|
mDuration = medium.getVideoDuration()
|
||||||
setupTimeHolder()
|
setupTimeHolder()
|
||||||
setPosition(0)
|
setPosition(0)
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ data class Medium(
|
||||||
return calendar.timeInMillis.toString()
|
return calendar.timeInMillis.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getVideoLength(): Int {
|
fun getVideoDuration(): Int {
|
||||||
var seconds = 0
|
var seconds = 0
|
||||||
try {
|
try {
|
||||||
if (isVideo()) {
|
if (isVideo()) {
|
||||||
|
|
Loading…
Reference in New Issue