[Android] Fix time not displayed in TV video browser
Nicolas Pomepuy
git at videolan.org
Wed Feb 9 14:56:38 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Jan 17 14:17:21 2022 +0100| [c8be5bcbe902b02440461a86c1edba6fa47732c8] | committer: Nicolas Pomepuy
Fix time not displayed in TV video browser
Fixes #2316
> https://code.videolan.org/videolan/vlc-android/commit/c8be5bcbe902b02440461a86c1edba6fa47732c8
---
.../src/main/java/org/videolan/television/ui/MediaTvItemAdapter.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/television/src/main/java/org/videolan/television/ui/MediaTvItemAdapter.kt b/application/television/src/main/java/org/videolan/television/ui/MediaTvItemAdapter.kt
index fd5fed0de..786dfeaed 100644
--- a/application/television/src/main/java/org/videolan/television/ui/MediaTvItemAdapter.kt
+++ b/application/television/src/main/java/org/videolan/television/ui/MediaTvItemAdapter.kt
@@ -218,7 +218,7 @@ class MediaTvItemAdapter(type: Int, private val eventsHandler: IEventsHandler<Me
if (item.type == MediaWrapper.TYPE_VIDEO) {
resolution = generateResolutionClass(item.width, item.height) ?: ""
isSquare = false
- description = if (item.time == 0L) Tools.millisToString(item.length) else Tools.getProgressText(item)
+ description = if (item.time <= 0L) Tools.millisToString(item.length) else Tools.getProgressText(item)
binding.badge = resolution
seen = item.seen
var max = 0
More information about the Android
mailing list