diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableActivitiesAdapter.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableActivitiesAdapter.kt index dc46fc2b1..66fcfcba8 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableActivitiesAdapter.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableActivitiesAdapter.kt @@ -176,7 +176,7 @@ class ParcelableActivitiesAdapter( filteredUserKeys = data.filteredUserIds } this.data = data - infoCache = if (data != null) arrayOfNulls(data.size) else null + this.infoCache = if (data != null) arrayOfNulls(data.size) else null gapLoadingIds.clear() updateItemCount() notifyDataSetChanged() diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableStatusesAdapter.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableStatusesAdapter.kt index 4df7f45fa..b2a92a1cf 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableStatusesAdapter.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/adapter/ParcelableStatusesAdapter.kt @@ -190,6 +190,7 @@ abstract class ParcelableStatusesAdapter( changed = this.data != data } this.data = data + this.infoCache = if (data != null) arrayOfNulls(data.size) else null gapLoadingIds.clear() updateItemCount() notifyDataSetChanged()