[Android] Next: update artUri when update program

Duncan McNamara git at videolan.org
Mon Dec 6 10:05:26 UTC 2021


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Wed Dec  1 18:17:38 2021 +0100| [43ace12e378e7441afa9f9ecabe1576cbdb6c08e] | committer: Nicolas Pomepuy

Next: update artUri when update program

> https://code.videolan.org/videolan/vlc-android/commit/43ace12e378e7441afa9f9ecabe1576cbdb6c08e
---

 .../tools/src/main/java/videolan/org/commontools/TvChannelUtils.kt       | 1 +
 1 file changed, 1 insertion(+)

diff --git a/application/tools/src/main/java/videolan/org/commontools/TvChannelUtils.kt b/application/tools/src/main/java/videolan/org/commontools/TvChannelUtils.kt
index 6bc221d8e..acc60c5ae 100644
--- a/application/tools/src/main/java/videolan/org/commontools/TvChannelUtils.kt
+++ b/application/tools/src/main/java/videolan/org/commontools/TvChannelUtils.kt
@@ -166,6 +166,7 @@ fun updateWatchNext(context: Context, program: WatchNextProgram, pDesc: ProgramD
             .setLastEngagementTimeUtcMillis(System.currentTimeMillis())
             .setLastPlaybackPositionMillis(pDesc.time)
             .setContentId(pDesc.contentId)
+            .setPosterArtUri(pDesc.artUri)
             .build().toContentValues()
     val watchNextProgramUri = TvContractCompat.buildWatchNextProgramUri(watchNextProgramId)
     val rowsUpdated = context.contentResolver.update(watchNextProgramUri,values, null, null)



More information about the Android mailing list