mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
renaming video length to video duration
This commit is contained in:
parent
d78b9a87d2
commit
4cbbca9f54
3 changed files with 3 additions and 3 deletions
|
@ -458,7 +458,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Thumbnai
|
|||
|
||||
val showVideoDuration = medium.isVideo() && config.showThumbnailVideoDuration
|
||||
if (showVideoDuration) {
|
||||
video_duration.text = medium.getVideoLength().getFormattedDuration()
|
||||
video_duration.text = medium.getVideoDuration().getFormattedDuration()
|
||||
}
|
||||
video_duration.beVisibleIf(showVideoDuration)
|
||||
|
||||
|
|
|
@ -523,7 +523,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
|||
}
|
||||
|
||||
private fun setupVideoDuration() {
|
||||
mDuration = medium.getVideoLength()
|
||||
mDuration = medium.getVideoDuration()
|
||||
setupTimeHolder()
|
||||
setPosition(0)
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@ data class Medium(
|
|||
return calendar.timeInMillis.toString()
|
||||
}
|
||||
|
||||
fun getVideoLength(): Int {
|
||||
fun getVideoDuration(): Int {
|
||||
var seconds = 0
|
||||
try {
|
||||
if (isVideo()) {
|
||||
|
|
Loading…
Reference in a new issue