renaming video length to video duration

This commit is contained in:
tibbi 2018-11-18 22:48:22 +01:00
parent d78b9a87d2
commit 4cbbca9f54
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)
} }

View File

@ -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()) {