Skip to content

Commit

Permalink
WATCH_NEXT_TYPE_NEW now ordered by item creation date.
Browse files Browse the repository at this point in the history
  • Loading branch information
hdweiss committed Dec 25, 2024
1 parent 458e7a9 commit 73af118
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,8 @@ class LeanbackChannelWorker(
// First episode of the season
item.indexNumber == 1 -> {
setWatchNextType(WatchNextPrograms.WATCH_NEXT_TYPE_NEW)
setLastEngagementTimeUtcMillis(Instant.now().toEpochMilli())
setLastEngagementTimeUtcMillis(item.dateCreated?.atZone(ZoneId.systemDefault())?.toInstant()?.toEpochMilli()
?: Instant.now().toEpochMilli())
}
// Default
else -> {
Expand Down

0 comments on commit 73af118

Please sign in to comment.