mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47: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
|
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 a new issue