From bd9c88464e325105a18b1f8d03bee020a6e59626 Mon Sep 17 00:00:00 2001 From: Luna712 <142361265+Luna712@users.noreply.github.com> Date: Thu, 20 Jun 2024 18:34:57 -0600 Subject: [PATCH] Override hashCode --- .../lagradost/cloudstream3/ui/download/DownloadAdapter.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadAdapter.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadAdapter.kt index 6825ab12..8f496b3c 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadAdapter.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/download/DownloadAdapter.kt @@ -43,6 +43,13 @@ abstract class VisualDownloadCached( return true } + + override fun hashCode(): Int { + var result = currentBytes.hashCode() + result = 31 * result + totalBytes.hashCode() + result = 31 * result + data.hashCode() + return result + } } data class VisualDownloadChildCached(