From 448e4c2067f59f824d8b00abf007d075cf161d4f Mon Sep 17 00:00:00 2001 From: Daniel Frett Date: Wed, 18 Dec 2024 11:22:53 -0700 Subject: [PATCH] include primary & parallel locales in equals and hashcode methods --- library/model/src/main/kotlin/org/cru/godtools/model/Tool.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/model/src/main/kotlin/org/cru/godtools/model/Tool.kt b/library/model/src/main/kotlin/org/cru/godtools/model/Tool.kt index e424511b63..5799364691 100644 --- a/library/model/src/main/kotlin/org/cru/godtools/model/Tool.kt +++ b/library/model/src/main/kotlin/org/cru/godtools/model/Tool.kt @@ -209,6 +209,8 @@ class Tool( isScreenShareDisabled != other.isScreenShareDisabled -> false shares != other.shares -> false pendingShares != other.pendingShares -> false + primaryLocale != other.primaryLocale -> false + parallelLocale != other.parallelLocale -> false apiId != other.apiId -> false metatoolCode != other.metatoolCode -> false defaultVariantCode != other.defaultVariantCode -> false @@ -234,6 +236,8 @@ class Tool( result = 31 * result + isScreenShareDisabled.hashCode() result = 31 * result + shares result = 31 * result + pendingShares + result = 31 * result + (primaryLocale?.hashCode() ?: 0) + result = 31 * result + (parallelLocale?.hashCode() ?: 0) result = 31 * result + (apiId?.hashCode() ?: 0) result = 31 * result + (metatoolCode?.hashCode() ?: 0) result = 31 * result + (defaultVariantCode?.hashCode() ?: 0)