From 8a6e0c26a24f660f7802774e28ad25121d603e4e Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Tue, 14 Jul 2020 08:16:05 +0200 Subject: [PATCH] - fix implementation of the equals method for the `BaseItem` - FIX https://github.com/mikepenz/FastAdapter/issues/910 --- .../src/main/java/com/mikepenz/fastadapter/items/BaseItem.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library-core/src/main/java/com/mikepenz/fastadapter/items/BaseItem.kt b/library-core/src/main/java/com/mikepenz/fastadapter/items/BaseItem.kt index 3c2130c9d..0797d1b62 100644 --- a/library-core/src/main/java/com/mikepenz/fastadapter/items/BaseItem.kt +++ b/library-core/src/main/java/com/mikepenz/fastadapter/items/BaseItem.kt @@ -74,7 +74,7 @@ abstract class BaseItem : IItem { override fun equals(other: Any?): Boolean { if (this === other) return true if (other == null || javaClass != other.javaClass) return false - val that = other as? AbstractItem<*>? + val that = other as? BaseItem<*>? return identifier == that?.identifier }