diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 20f09c4b2..03cb2b8e6 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -30,7 +30,7 @@ android { minSdk = 21 targetSdk = 35 versionCode = 121 - versionName = "2.40.4" + versionName = "2.40.5" } buildTypes { diff --git a/app/src/main/java/com/github/andreyasadchy/xtra/ui/download/VideoDownloadWorker.kt b/app/src/main/java/com/github/andreyasadchy/xtra/ui/download/VideoDownloadWorker.kt index 1b54489f9..1c9ca44f6 100644 --- a/app/src/main/java/com/github/andreyasadchy/xtra/ui/download/VideoDownloadWorker.kt +++ b/app/src/main/java/com/github/andreyasadchy/xtra/ui/download/VideoDownloadWorker.kt @@ -896,6 +896,9 @@ class VideoDownloadWorker @AssistedInject constructor( }) } } while (lastOffsetSeconds?.let { it < endTimeSeconds } != false && !data.edges.lastOrNull()?.cursor.isNullOrBlank() && data.pageInfo?.hasNextPage != false) + offlineRepository.updateVideo(offlineVideo.apply { + chatProgress = offlineVideo.maxChatProgress + }) writer.endObject().also { position += 1 } } }