From 89ab886d68686df38467f89f2e506049824bfe14 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 4 Nov 2024 17:01:11 +0100 Subject: [PATCH] fix: live videos shown as uploaded in 1970 in watch history --- .../com/github/libretube/ui/adapters/WatchHistoryAdapter.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/ui/adapters/WatchHistoryAdapter.kt b/app/src/main/java/com/github/libretube/ui/adapters/WatchHistoryAdapter.kt index ee0c3db70..9eae99ad5 100644 --- a/app/src/main/java/com/github/libretube/ui/adapters/WatchHistoryAdapter.kt +++ b/app/src/main/java/com/github/libretube/ui/adapters/WatchHistoryAdapter.kt @@ -54,7 +54,8 @@ class WatchHistoryAdapter( holder.binding.apply { videoTitle.text = video.title channelName.text = video.uploader - videoInfo.text = video.uploadDate?.let { TextUtils.localizeDate(it) } + videoInfo.text = + video.uploadDate?.takeIf { !video.isLive }?.let { TextUtils.localizeDate(it) } ImageHelper.loadImage(video.thumbnailUrl, thumbnail) if (video.duration != null) {